1
0
Fork 0
mirror of https://gitlab.jonasled.de/jonasled/discordbot synced 2024-11-20 10:13:03 +01:00

new options for status of bot

This commit is contained in:
Jonas Leder 2020-04-22 18:55:25 +02:00
parent 4592829f42
commit 27b3943f37

9
bot.py
View file

@ -46,7 +46,14 @@ async def on_ready():
print(bot.user.name)
print(bot.user.id)
print('------')
await bot.change_presence(activity=discord.Game(name=game))
if(activity == 0):
await bot.change_presence(activity=discord.Game(name=name))
if(activity == 1):
await bot.change_presence(activity=discord.Streaming(name=name, url=url))
if(activity == 2):
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name=name))
if(activity == 3):
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name=name))
#
#