@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)
File "C:\Users\ivan\Desktop\sgajdhgjwdg\bot.py", line 17
await ctx.send('Привет ' online)
^
SyntaxError: invalid syntax
import discord
import requests
import json
from discord.ext import commands
bot = commands.Bot(command_prefix='>')
@bot.command()
async def ping(ctx):
await ctx.send('pong')
@bot.command()
r = requests.get('https://api.vimeworld.ru/online')
json_data = r.json()
total = json_data['total']
await ctx.send(total)
bot.run('token')
File "C:\Users\ivan\Desktop\sgajdhgjwdg\bot.py", line 13
r = requests.get('https://api.vimeworld.ru/online')
IndentationError: unexpected indent