title: How to receive and send message to specific channel in Discord.py?
body: <p>Yesterday I was working on something simple where a bot on command of <code>!name Barty</code> would print back <code>Hello Barty</code></p>
  
  <pre><code>@bot.command()
  async def name(ctx, args):
      await ctx.send("hello {}".format(args)
  </code></pre>
  
  <p>However the problem I am facing at this moment is that the bot would response to any channel where I do use the <code>!name XXXX</code> and what I am trying to do is that I want only to react to given specific channel in discord.</p>
  
  <p>I tried to do:</p>
  
  <pre><code>@bot.event
  async def on_message(message):
  
      if message.channel.id == 1234567:
  
          @bot.command()
          async def name(ctx, args):
              await ctx.send("hello {}".format(args)
  </code></pre>
  
  <p>but that was completely not working and I am out of ideas and here I am.</p>
  
  <p>How can I send command to a given specific channel and get back response from there?</p>