I'm currently new to coding, And I'm planning to make a utility bot. So basically, what I am trying to do here is getting the second argument for my on_message event. But how can I do that?
I'm making an auto math module for my bot, without using the prefix. For example: solve 5*5
and the bot was supposed to automatically answer it by reading the second argument.
My Code:
@client.event
async def on_message(message):
if message.content.startswith('solve'):
expression = # Where it supposed to read the arguments
await math(message, expression) # math function