I am writing a bot so that people do not give themselves money from the bot unbelievaboat.
There is such a bot for the economy. I want when people write add-money, the bot responds to them with remove-money
like they are trying to give money and the bot takes it.
I wrote the code, the bot writes a command, but nothing happens if the same command is written manually, everything is ok.
code:
There is such a bot for the economy. I want when people write add-money, the bot responds to them with remove-money
like they are trying to give money and the bot takes it.
I wrote the code, the bot writes a command, but nothing happens if the same command is written manually, everything is ok.
code:
Code:
import discord
import time
client = discord.Client()
@client.event
async def on_ready():
print ('We have logged in as {0.user}'.format(client))
@client.event
async def on_message(message):
if message.content.startswith('!add-money'):
time.sleep(2);
await message.channel.send(f"!remove-money {message.author.mention} 100")
client.run('TOKEN')