I am new to python and using the discord api. I am making a bot where I collect league of legends data and I already created the function where I can collect the data like Summoners Information and Ranked details. I am just having hard time figuring it out and I have been looking every where that could help me.
async def on_message(message):
if message.author == client.user:
return
if message.content.startswith('!stats'):
await message.channel.send(requestSummonerData("Munns"))
await message.channel.send("-----------------------------------")
await message.channel.send(requestRankData("Munns"))
This is my current code at the moment, so far I am just hard coding the name and the information printing part is working perfectly but I would like to do something like !stats xyz and it would print information for that person. Honestly, any advice would help me because cause in the end I am just trying to learn python and discords api. Thank you so much!