title: How to make bot run a slash command discord.py
body: <p>I'm trying to send slash commands with a selfbot ran on repl.it but they are sent as a normal message and not detected as slash commands.</p>
  <p>I know discord selfbots are against <strong>TOS</strong> but for testing purposes how would i make it so that they detect as a slash command?</p>
  <p>Here is the code:</p>
  <pre><code>import discord
  import os
  import keep_alive
  from discord.ext import commands, tasks
  
  bot = commands.Bot(command_prefix='!', self_bot=True, help_command=None)
  
  @bot.event
  async def on_ready():
      print(&quot;Bot presence t u r n e d on ( ͡° ͜ʖ ͡°)&quot;)
      test.start()
  
  @tasks.loop(seconds=10)
  async def test():
      channel = bot.get_channel(xxx)
      await channel.send('/nick test nick')
  
  keep_alive.keep_alive()
  bot.run(xxx, bot=False)
  </code></pre>
  <p>Thanks.</p>