Created
March 24, 2022 18:51
-
-
Save siqnole/ad19c9f520961328290bda6604d5dd48 to your computer and use it in GitHub Desktop.
easy censorship bot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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