X
X
xis22482020-07-11 23:40:35
Python
xis2248, 2020-07-11 23:40:35

How to change prefix in discord.py?

Code:

import discord
from discord.ext import commands
import random
import os

bot = commands.Bot(command_prefix='!')
bot.remove_command( 'help' )

@bot.command(pass_context=True)
async def help(ctx):
emb = discord.Embed( title= 'Team Navigation')
emb.add_field( name ='say'.format(bot), value='Bot says instead of you!')
await ctx.send( embed = emb )

bot.run(os.environ['TOKEN'])

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-07-11
@Alexandre888

see .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question