Answer the question
In order to leave comments, you need to log in
What to do with requests what is wrong here and how to fix the code for discord.py?
hello tell me what to do
@bot.command()
async def online(self, ctx):
r = requests.get('https://api.vimeworld.ru/online', headers)
headers["separated": "fallguys"]
r.json()
await ctx.send.r()
Answer the question
In order to leave comments, you need to log in
Read a Python tutorial before getting into bots. Judging by the question, you don't even know the basics.
Try this
@bot.command()
async def online(self, ctx):
headers = {
"separated": "fallguys"
}
r = requests.get('https://api.vimeworld.ru/online', headers=headers)
await ctx.send(r.json())
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question