|
|
@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
import asyncio
|
|
|
|
|
|
|
|
|
|
|
|
import discord
|
|
|
|
import discord
|
|
|
|
from redbot.core import Config, checks, commands
|
|
|
|
from redbot.core import Config, checks, commands
|
|
|
|
from redbot.core.bot import Red
|
|
|
|
from redbot.core.bot import Red
|
|
|
@ -199,6 +201,8 @@ class InfoChannel(Cog):
|
|
|
|
name = "{} ".format(online_msg)
|
|
|
|
name = "{} ".format(online_msg)
|
|
|
|
await onlinechannel.edit(reason="InfoChannel update", name=name)
|
|
|
|
await onlinechannel.edit(reason="InfoChannel update", name=name)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await asyncio.sleep(60)
|
|
|
|
|
|
|
|
|
|
|
|
@Cog.listener()
|
|
|
|
@Cog.listener()
|
|
|
|
async def on_member_join(self, member: discord.Member):
|
|
|
|
async def on_member_join(self, member: discord.Member):
|
|
|
|
await self.update_infochannel(member.guild)
|
|
|
|
await self.update_infochannel(member.guild)
|
|
|
|