Category : discord.py

So I am coding a discord bot using discord.py. I am using a CSV file as my main "database". I have decided to recode the whole thing with a real database(MySQL, SQLite 3). Is there a database that meets the following requirements: Must work with Heroku Must be like a CSV file Must have features ..

Read more

So I’m writing this custom embed command for my discord.py bot. The bot asks a few questions then send a custom embed with the variables that the user specifies. The bot asks the first question and after i input the first variable/text, it stops responding. Full code: @commands.command(aliases=[‘custom’, ‘cembed’]) async def customembed(self,ctx): questions = ["What ..

Read more

Okay so this is my code: @client.command(aliases=[‘d’], pass_context=True) async def decrypt(ctx, arg, member=discord.Member): key = b’xxxxxx’ f = Fernet(key) decrypted = f.decrypt(arg) channel = await member.create_dm() await channel.send(f’Decrypted message: {decrypted}’) I insert a string after ctx, and it says TypeError: token must be bytes. My arg is this (which is a byte, right?): b’gAAAAABgx22pwwjUHUA7KqV8jmZrXvocfC3VrHS_QrGCfCaEyj6f7cG1_K3NtbkADYiR4l8fq-DiqYJJk2k8n0jBUhDYsH2kNA==’ Source: ..

Read more