title: How to change presence of selfbot
body: <p>I want to change the presence of self bots by sending a command to the chat (e.g. !setstatus idle), but I am unsure what to set x.change_presence to, other than it should be a bot object.</p>
  <blockquote>
  <p>Cog File (/discord bot/cogs/Bots.py)</p>
  </blockquote>
  <pre><code>class Bots(commands.Cog):
      def __init__(self, bot):
          self.bot = bot
      
          @commands.command()
          async def setstatus(self, ctx, status='online'):
               print('Changing Status')
  
                  if status.lower() == 'online':
                      await ctx.change_presence(status=discord.Status.online)
               
                  elif status.lower() == 'idle'
                      await ctx.change_presence(status=discord.Status.idle)
  
  </code></pre>
  <blockquote>
  <p>Main Script (/discord bot/main.py)</p>
  </blockquote>
  <pre><code>for i in range(len(tokens)):
  
      bot = commands.Bot(command_prefix='!',self_bot=False)
      loop.create_task(bot.start(tokens[i], bot=False))
      
      extensions = ['cogs.Bots']
  
      if __name__ == '__main__':
          for extension in extensions:
              bot.load_extension(extension)
  
  loop.run_forever()
  </code></pre>