1import ctx #You might need to install this seperately from discord.py (if you don't have it)
2
3# lets say you want to change the bot's prefix...
4async def prefix(ctx):
5
6 await ctx.send(f'What do you want to set the prefix to?')
7
8 # wait for responce and lower the text for easy use
9 value = await client.wait_for('message')
10 value = value.content.lower()
11
12 # this is where you would change the prefix value in a config file or something
13 # example: parser.set('prefix', value) <--- the value is your looking for
14
15 # prints and messages the output (you don't really need this)
16 print(ctx.message.author, 'Changed the prefix to:', value)
17 await ctx.send('Prefix changed to: {}'.format(value))
18