title: My discord bot keeps spamming everytime i send a message
body: <p>My goal was to make my bot send a message every time I do, but after I send a message, my bot goes crazy and start spamming messages.</p>
  <pre><code>from discord.ext import commands
  from discord import *
  from discord.utils import *
  
  
  bot = commands.Bot(command_prefix=&quot;.&quot;)
  
  @bot.event
  async def on_ready():
      print(&quot;The bot is online&quot;)
      await bot.change_presence(status=discord.Status.online, activity=discord.Game('.bothelp'))
  
  @bot.event
  async def on_message(message):
      repeat = True
      while repeat:
          await message.channel.send(f&quot;random text&quot;)
          break
  
  bot.run(&quot;Bot Token Censored&quot;)
  </code></pre>