title: Python - Discord bot on ready send message to channel
body: <p>I have problem creating simple python script which sends message to default channel when executed from terminal.</p>
  <pre><code>import discord
  
  @bot.event
  async def on_ready(ctx):
      print('Online')
      await ctx.send('Message sent!')
  
  
  bot.run('MYTOKEN')
  </code></pre>
  <p>with this example I keep getting &quot;ctx&quot; is not defined</p>