Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @client.event
- async def on_message(message):
- botID = # Enter your bot's ID here
- if message.content == f'<@!{botID}>':
- with open('prefixes.json', 'r') as f:
- prefixes = json.load(f)
- prefix = prefixes[str(message.guild.id)]
- await message.channel.send(f'My prefix is: {prefix}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement