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:
parent
4592829f42
commit
27b3943f37
1 changed files with 8 additions and 1 deletions
9
bot.py
9
bot.py
|
@ -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))
|
||||
|
||||
#
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue