@JonB Tried the function, nothing no response not on the server or the terminal
@bot.command()
async def test(ctx):
print("test Called")
await ctx.send('test')
I changed the client.event to bot.event, the on_message event and on_ready work fine. The command still doesn't respond
import discord
from discord.ext.commands import Bot
TOKEN = 'MyToken'
bot = Bot(command_prefix='$')
@bot.command()
async def test(ctx):
print("test Called")
await ctx.send('test')
@bot.event
async def on_ready():
print("We have logged in as: {0.user}".format(bot))
@bot.event
async def on_message(message):
if message.author == bot.user:
return
if message.content.startswith("shrug"):
print("shrug")
await message.channel.send('¯\_(ツ)_/¯')
bot.run(TOKEN)