From 54ea41825b1b0b8670ab232b0d0777d86ed458b8 Mon Sep 17 00:00:00 2001 From: bobloy Date: Tue, 21 Jul 2020 09:34:25 -0400 Subject: [PATCH] Address rate limits? --- infochannel/infochannel.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/infochannel/infochannel.py b/infochannel/infochannel.py index 278a6d7..b58eb71 100644 --- a/infochannel/infochannel.py +++ b/infochannel/infochannel.py @@ -1,3 +1,5 @@ +import asyncio + import discord from redbot.core import Config, checks, commands from redbot.core.bot import Red @@ -199,6 +201,8 @@ class InfoChannel(Cog): name = "{} ".format(online_msg) await onlinechannel.edit(reason="InfoChannel update", name=name) + await asyncio.sleep(60) + @Cog.listener() async def on_member_join(self, member: discord.Member): await self.update_infochannel(member.guild)