Address rate limits?

pull/106/head
bobloy 5 years ago
parent f83647a945
commit 54ea41825b

@ -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)

Loading…
Cancel
Save