i have a problem with my discord bot: when i type on discord $ping he doesn't response me pong and i don't know why, i just check the bot have the admin role so he can write, i'm using VsCode and he didn't give me nothing error.
Here is the code
import discord
from discord.ext import commands
import requests
import json
import random
client = discord.Client()
bot = commands.Bot(command_prefix='$')
@bot.command()
async def ping(ctx):
await ctx.channel.send("pong")
@client.event
async def on_ready():
print('We have logged in as {0.user}'.format(client))
client.run("XXXXXXXXXXXXXXXXXXXXXXX")
clientandbot, do not do that... This is why the command is not working.client = discord.Client()and usebot.eventandbot.command(). To run the bot usebot.run("Token")