summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorRosyid Haryadi <rosyid_haryadi@protonmail.com>2024-07-27 12:39:47 +0700
committerRosyid Haryadi <rosyid_haryadi@protonmail.com>2024-07-27 12:39:47 +0700
commitc3820780c1a13a882c8bdc3255ec64338ec17051 (patch)
tree55a5d9a3b4bb41fdefd0ebe87e0a89c6dbcff938 /main.py
parente9e934c38b4c5cf7697bd97682704e380ab5a327 (diff)
upd main
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()