Add day on message Discord bot

This commit is contained in:
Stefano Assenzo 2023-01-25 15:54:00 +00:00 committed by GitHub
parent 6dfa4e3bb3
commit d07dbac7f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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)