X
X
xis22482020-07-13 19:22:56
Python
xis2248, 2020-07-13 19:22:56

How to make the message written by the discord.py person write to the console?

@bot.command()
async def say(ctx, *arg):
await ctx.message.delete()
await ctx.send(' '.join(arg))

to output what the person wrote
e.g.
r!say I I bought water
and the console displays the
nickname of the person r!say I bought water

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dadasay, 2020-07-13
@xis2248

#Getting the author
author = ctx.message.author #Message
text
msg = ctx.message.content

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question