title: Asyncio issues with Discord Bot
body: <p>So I have the bot as follows:</p>
  <pre><code>import discord
  import asyncio
  
  intents = discord.Intents.default()
  intents.members = True
  bot = commands.Bot(command_prefix = '.', intents = intents, help_command = None)
  
  @bot.event
  async def on_ready():
      print(f'Logged in as {bot.user.name}')
      print(bot.user.id)
      print('------')
  
  async def status_task():
      await bot.wait_until_ready()
      while not bot.is_closed():
          await bot.change_presence(activity = discord.Activity(type = discord.ActivityType.watching, name = &quot;TEST!&quot;))
          await asyncio.sleep(10)
          await bot.change_presence(activity = discord.Activity(type = discord.ActivityType.watching, name = &quot;.help for commands!&quot;))
          await asyncio.sleep(10)
  
  bot.loop.create_task(status_task())
  bot.run('TOKEN')
  </code></pre>
  <p>With the await asyncio.sleep(10) the bot will not even run on my computer. Without it everything is fine, the loop even works. I have done pip install asyncio and a few other things I saw around here and nothing fixed it.</p>