From d07dbac7f5975181e4a7dd38dc91275217a1ce97 Mon Sep 17 00:00:00 2001 From: Stefano Assenzo Date: Wed, 25 Jan 2023 15:54:00 +0000 Subject: [PATCH] Add day on message Discord bot --- src/events/school_time/discord_bot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/events/school_time/discord_bot.py b/src/events/school_time/discord_bot.py index e5524cf..c3fdf6b 100644 --- a/src/events/school_time/discord_bot.py +++ b/src/events/school_time/discord_bot.py @@ -33,9 +33,8 @@ async def orario(): for day in document['School Subject']: for i, subject in enumerate(document['School Subject'][day]): if subject['Subject'] == "CALF1 LINGUA ITALIANA": - print(f"Subject found: {subject['Subject']} at index: {i}") # Send a message on channel #general with the subject found and the index of the subject channel = bot.get_channel(1063753802638954519) - await channel.send(f"Hour school: {i}, Subject found: {subject['Subject']} at index: {i}") + await channel.send(f"Day: {day}, Hour school: {i}, Subject found: {subject['Subject']} at index: {i}") bot.run(DISCORD_TOKEN) \ No newline at end of file