Or Watch The Tutorial To Make Your Own
Extra Bonus Double Plus Code Snippets:
Sends The Content Within A Pair Of Brackets (Useful For Input)
import discord
import re
@client.event
async def on_message(message):
if message.content.startswith('command'):
bracketsContent = re.findall(r"\[([A-Za-z0-9_ ]+)\]", message.content)
await message.channel.send(bracketsContent)
Adds A Role To A Member
role = discord.utils.get(reaction.message.guild.roles, name="Role name")
await user.add_roles(role, reason=None, atomic=False)
Embeds A Message
embed = discord.Embed(title="Title", description="Descrip", color=0x07a0c3)
embedVar.add_field(name="Field 1", value="Content", inline=False)
await message.channel.send(embed=embedVar)
Checks For Swear Words
swearWords = ['shipt', 'funck', 'dimck', 'chunt', 'binch'] #These are all the swear words I know
for swearWord in swearWords:
if swearWord in message.content.lower():
await warn(message, message.author)