From abebd8487106059bd7cbf842d82fca021f04f57e Mon Sep 17 00:00:00 2001 From: turtlebasket Date: Wed, 22 Jul 2020 08:04:06 -0700 Subject: [PATCH] Delay presence change --- bot.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index 69cc597..5762295 100644 --- a/bot.py +++ b/bot.py @@ -1,4 +1,4 @@ -""" +r""" _____ __ / ___/__ __ _ _______ ____/ /__ / /__/ _ \/ ' \/ __/ _ `/ _ / -_) @@ -83,11 +83,13 @@ class TopGG(commands.Cog): @bot.event async def on_ready(): # await bot.change_presence(activity=discord.Game(name='{} servers | >>help'.format(len(bot.guilds)))) - bot.loop.create_task(status_loop()) bot.add_cog(TopGG(bot)) print("Bot started.") print("--------------------------") + await asyncio.sleep(300) + bot.loop.create_task(status_loop()) + @bot.command(aliases=['manual', 'commands', 'info']) async def help(ctx): embed = discord.Embed(title="Comrade: Usage & Other Info") @@ -252,6 +254,7 @@ async def mute(ctx, target_user:discord.User): muted_users.remove(target_user) except discord.ext.commands.errors.CommandInvokeError: await error_admin_targeted(ctx) + muted_users.remove(target_user) @bot.command() async def kick(ctx, target_user:discord.User): @@ -270,6 +273,7 @@ async def kick(ctx, target_user:discord.User): if vote_passed: try: await ctx.guild.kick(target_user) + await ctx.send("👢 Kicked `{}`.".format(target_user)) except discord.ext.commands.errors.CommandInvokeError: await error_admin_targeted(ctx) @@ -293,7 +297,7 @@ async def ban(ctx, target_user:discord.User): if vote_passed: try: await ctx.guild.ban(target_user) - await ctx.send(":crab: :crab: `{}` IS GONE :crab: :crab:".format(target_user.name)) + await ctx.send("🦀🦀 `{}` IS GONE 🦀🦀".format(target_user.name)) except discord.ext.commands.errors.CommandInvokeError: await error_admin_targeted(ctx)