From cdf6074fd92deda213d1b8f94bd437d58e71ba32 Mon Sep 17 00:00:00 2001 From: Paillat Date: Tue, 13 Dec 2022 21:36:29 +0100 Subject: [PATCH] Added watching activity status --- code/code.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/code.py b/code/code.py index a375e1e..895fc06 100644 --- a/code/code.py +++ b/code/code.py @@ -14,6 +14,10 @@ bot.add_cog(cogs.Settings(bot)) bot.add_cog(cogs.Help(bot)) bot.add_cog(cogs.Chat(bot)) bot.add_cog(cogs.ManageChat(bot)) +@bot.event +async def on_ready(): + await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="your messages to answer you")) + debug("Bot is ready") ''' def reset_uses_count_today(): @@ -44,7 +48,3 @@ with open("./key.txt") as f: key = f.read() bot.run(key) -@bot.event -async def on_ready(): - await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="your messages to answer you")) - debug("Bot is ready")