Trying to subtract the number sent in a message from 153
from discord.ext import commands
bot = discord.ext.commands.Bot(command_prefix = "$")
#the function
async def gamesAwayb1():
return 153 - on_message()
#not sure what to put instead of on_message
@bot.event
async def on_message(message):
if 0 < int(message.content) < 153:
await message.channel.send("you are in Bronze 1. You are" , gamesAwayb1() , "games away from Bronze 2")
if 153 < int(message.content) < 200:
await message.channel.send("you are in Bronze 2")
Ignoring exception in on_message Traceback (most recent call last): File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event await coro(*args, **kwargs) File "main.py", line 13, in on_message await message.channel.send("you are in Bronze 1. You are" , gamesAwayb1(message) , "games away from Bronze 2") TypeError: gamesAwayb1() takes 0 positional arguments but 1 was given