title: How to send a message with discord.py without a command
body: <pre><code>import discord
  import asyncio
  
  client = discord.Client()
  @client.event
  async def on_ready():
      print(&quot;I'm ready.&quot;)
  
  async def send(message):
      await client.send_message(client.get_channel(&quot;123456789&quot;), message)
  
  client.run(&quot;token&quot;)
  
  loop = asyncio.get_event_loop()
  loop.run_until_complete(send(&quot;hello&quot;))
  </code></pre>
  <p>Hi, i want to make a GUI. When someone put in his name and press &quot;OK&quot; my discord bot should send a message. Basically i thought i call the async by it's name, didn't work. Then i made a event loop. worked with a print(), but the bot doesn't send a message, so i thought it is not ready, when i put wait_until_ready() there it executed nothing, so i thought i have to put the client.run(&quot;token&quot;) before the event loop, didn't work either.</p>
  <p>can you guys help me? :)</p>