From c3820780c1a13a882c8bdc3255ec64338ec17051 Mon Sep 17 00:00:00 2001 From: Rosyid Haryadi Date: Sat, 27 Jul 2024 12:39:47 +0700 Subject: upd main --- main.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'main.py') 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() -- cgit v1.2.3-70-g09d2