Answer the question
In order to leave comments, you need to log in
How to display the entire message?
How to display the entire message? Like $message 136384993 3828191 2223.44 5 4
And I need to output everything after $message
How can I do that?
Answer the question
In order to leave comments, you need to log in
Use command extension
@bot.command()
async def message(ctx, *, text: str): # https://discordpy.readthedocs.io/en/stable/ext/commands/commands.html#keyword-only-arguments
"""Send <text>"""
await ctx.send(text)
Option 1:
message = '$message 136384993 3828191 2223.44 5 4'
print(message[9:])
message = '$message 136384993 3828191 2223.44 5 4'
print(message.replace('$message ',''))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question