client = commands.Bot(command_prefix='!', intents=discord.Intents.all())
Kodunu şu şekilde değiştirin.
class MyBot(commands.Bot):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.db = None
self.cursor = None
async def setup_hook(self)...