title: Discord Bot Not Responding to Commands (Python)
body: <p>I've just gotten into writing discord bots. While trying to follow online instructions and tutorials, my bot would not respond to commands. It responded perfectly fine to on_message(), but no matter what I try it won't respond to commands. I'm sure it's something simple, but I would appreciate the help.</p>
  <pre><code>import discord
  from discord.ext.commands import Bot
  from discord.ext import commands
  
  bot = commands.Bot(command_prefix='$')
  TOKEN = '&lt;token-here&gt;'
  
  @bot.event
  async def on_ready():
      print(f'Bot connected as {bot.user}')
      
  @bot.event
  async def on_message(message):
      if message.content == 'test':
          await message.channel.send('Testing 1 2 3')
          
  @bot.command(name='go')
  async def dosomething(ctx):
      print(&quot;command called&quot;) #Tried putting this in help in debugging
      await message.channel.send(&quot;I did something&quot;)
  
  
          
  bot.run(TOKEN)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/AmVlU.png" rel="nofollow noreferrer">Picture of me prompting the bot and the results</a></p>