added bots activity to "!help"

This commit is contained in:
Sid 2021-12-19 11:55:41 +01:00 committed by GitHub
parent 173a5a1578
commit 9ae4270e04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,10 +44,12 @@ def get_dog():
dog.set_image(url = res['message']) dog.set_image(url = res['message'])
return dog return dog
# when bot is ready ## BOT READY
@client.event # Register an event @client.event # Register an event
async def on_ready(): async def on_ready():
print('We have logged in as {0.user}'.format(client)) print('We have logged in as {0.user}'.format(client))
activity = discord.Game(name = "!help") # sets bot activity
await client.change_presence(status = discord.Status.online, activity = activity)
## MESSAGE RESPONSES ## MESSAGE RESPONSES