def async_loop(self):
self.queue = asyncio.Queue()
self.event = asyncio.Event()
self.bot = discord.Client()
@self.bot.event
async def on_ready():
print('Discord component ready!')
self.gen_chan = {c.name: c for c in {s.name: s for s in self.bot.guilds}['Codes \'n Skillz Hideout'].channels}['general']
await self.gen_chan.send('**Discordian** GUI started.')
await self.bot.start(*token.bot_token)
self.loop.stop()
评论列表
文章目录