I have an on_message()
event, but I want to turn in into a command, the problem is that when I change it, the wait_for()
function doesn't work.
Is there any equivalent of wait_for()
in @client.command()
?
My code:
@client.event
async def on_message(message):
channel = message.author
def check(m):
return m.channel == message.channel and m.author != client.user
if message.content.startswith("!order"):
await channel.send("in game name")
in_game_name = await client.wait_for('message', check=check)
await channel.send("in game ID")
in_game_ID = await client.wait_for('message', check=check)
else:
await client.process_commands(message)```