| 1234567891011121314151617 |
- from discord.ext import commands
-
- class GeneralCog(commands.Cog):
- def __init__(self, bot: commands.Bot):
- self.bot = bot
- self.is_connected = False
- self.is_ready = False
-
- @commands.Cog.listener()
- async def on_connect(self):
- print('on_connect')
- self.is_connected = True
-
- @commands.Cog.listener()
- async def on_ready(self):
- print('on_ready')
- self.is_ready = True
|