From 27b3943f37990510ad78be11ecffe74f6b1f4aa3 Mon Sep 17 00:00:00 2001 From: Jonas Leder Date: Wed, 22 Apr 2020 18:55:25 +0200 Subject: [PATCH] new options for status of bot --- bot.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 96a367e..ceb6259 100644 --- a/bot.py +++ b/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)) # #