import discord
from discord.ext import commands
import random
print("Starting bot...")
TOKEN = (the token)
client = commands.Bot(command_prefix='?')
# answers with the ms latency
@client.command(name='ping', pass_context = True)
async def ping(ctx):
await ctx.send(f'Pong! {round(client.latency * 1000)}ms ')
client.run(TOKEN)
it runs any on_message commands but not anything else. I've looked at many tutorial sites and pages in S-O but none seem to work.