J
J
JoJikRe2021-01-12 13:52:01
Python
JoJikRe, 2021-01-12 13:52:01

How to make the discord bot not output the command?

Hello everyone, I ran into a problem, I'm making a rp bot and I need it so that when someone writes the $RpNonAction
command, a NON-RP MESSAGE is displayed: "Message". But the command is also displayed, how can I fix it?
The code:

@bot.command(pass_context=True) 
  async def NonRpAction(ctx, arg):
    NonRp = await ctx.send("НЕ-РП-СООБЩЕНИЕ:" + ctx.message.content)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-01-12
@JoJikRe

Just arg and output, but for some reason you passed it to the function.
await ctx.send("НЕ-РП-СООБЩЕНИЕ: " + arg)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question