N
N
Nolrox2022-01-18 17:59:07
Python
Nolrox, 2022-01-18 17:59:07

How to make the bot send any message?

Let's say I need to make the bot send any message.

I did the code:

@bot.command
async def say(ctx, arg):
    await ctx.send(arg)

and when I wrote .say a b c, he just wrote "a". How to make it so that he writes the argument normally, and does not have to write a-b-c?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2022-01-18
@Nolrox

Either in quotes or
async def say(ctx, *, arg):

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question