'discord.py how to get the integer from a message
so I am making a bot using discord.py and I am making a coinflip function for it but I want to use
if message.content == "g! coinflip":
await message.channel.send("<the coinflip function>")
instead of
@bot.command()
async def coinflip():
await message.channel.send("<the coinflip function>")
because the prefix for it is g! and in discord I want the command to look something like this g! coinflip 10000 but obviously the user will pick the amount they want to gamble which is what makes it hard, but yeah if you can help please do
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
