Skip to content

Instantly share code, notes, and snippets.

@siqnole
Created March 24, 2022 18:51
Show Gist options
  • Select an option

  • Save siqnole/ad19c9f520961328290bda6604d5dd48 to your computer and use it in GitHub Desktop.

Select an option

Save siqnole/ad19c9f520961328290bda6604d5dd48 to your computer and use it in GitHub Desktop.
easy censorship bot
import discord
from discord.ext import commands
bot=commands.Bot(command_prefix="c!")
@bot.event
async def on_message(message):
swears = ["frick", "heck", "hecc", "fricc"]
if message.content in swears:
await message.delete()
await message.send(f"{message.author.mention}! Keep it family friendly!")
bot.run(token)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment