Simplifying commentary

pull/8/head
sgoudham 4 years ago
parent 62b925ad01
commit 4628a05502

@ -98,10 +98,10 @@ if __name__ == '__main__':
client.load_extension(ext) client.load_extension(ext)
# Bot event making sure that messages sent by the bot do nothing
@client.event @client.event
async def on_message(message): async def on_message(message):
# Making sure that the bot does not take in its own messages """Make sure bot messages are not tracked"""
if message.author.bot: if message.author.bot:
return return
@ -112,6 +112,7 @@ async def on_message(message):
@tasks.loop(seconds=120, reconnect=True) @tasks.loop(seconds=120, reconnect=True)
async def change_status(): async def change_status():
"""Creating Custom Statuses as a Background Task""" """Creating Custom Statuses as a Background Task"""
global counter global counter
# Waiting for the bot to ready # Waiting for the bot to ready
await client.wait_until_ready() await client.wait_until_ready()
@ -146,7 +147,6 @@ async def change_status():
change_status.start() change_status.start()
# Bot Status on Discord
@client.event @client.event
async def on_ready(): async def on_ready():
"""Displaying if Bot is Ready""" """Displaying if Bot is Ready"""

Loading…
Cancel
Save