summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py17
1 files changed, 15 insertions, 2 deletions
diff --git a/main.py b/main.py
index 7f249ae..5ff4015 100644
--- a/main.py
+++ b/main.py
@@ -1,5 +1,18 @@
from downloader import downloadCsv
from csvReader import readCSV
+from bot import Bot
-downloadCsv()
-thisMonthPercentage = readCSV() \ No newline at end of file
+
+def main():
+ downloadCsv()
+ myScore = readCSV()
+ try:
+ myScore = 100 * float(myScore)
+ except ValueError:
+ myScore = 0
+ bot = Bot()
+ bot.send_message(f'Score leantime ente bulan ini {myScore}%')
+
+
+if __name__ == '__main__':
+ main()