Category : discord.py

I made a economy bot in discord and it doesn’t save anything in that part in code, everything else gets saved, there is no error or anything, im lost help me pls code: @client.command() async def buy(ctx, item=None, amount=None): db = sqlite3.connect(‘mainbank.db’) cur.execute("SELECT item1 FROM economy WHERE user_id = ?", (ctx.author.id,)) result = cur.fetchone() if ..

Read more

I have implemented my own functions/checks in my bot. Anyway, there is no normal AttributeError as output in the console, but for example: ‘NoneType’ object has no attribute ‘requested_by’, so without the AttributeError, because it is my own function. Is there a way to output this error also via bot and possibly handle it with ..

Read more