Answer the question
In order to leave comments, you need to log in
Where is this code located in the discord.py documentation? Can you please send a link?
Tell me where in this documentation https://discordpy.readthedocs.io/en/latest/index.html is this code?
@bot.command()
async def test3(ctx):
r = requests.get('https://api.vimeworld.ru/online')
json_data = r.json()
online = json_data['total']
await ctx.send(online)
Answer the question
In order to leave comments, you need to log in
I doubt that the developer of the discord library decided to insert some kind of parser into the documentation. Why does this code even have to be there?
The code you specified is waiting for a command
test3code examples
await ctx.send(online)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question