Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import discord
- from discord.ext.commands import Bot
- from discord.ext import commands
- import asyncio
- import time
- import random
- Client = discord.Client()
- client = commands.Bot(command_prefix = "Ex!")
- @client.event
- async def on_ready():
- print("Exodus is ready to roll, Time to do this !")
- chat_filter = ["PINEAPPLE", "APPLE", "CHROME", "FUCK", "DADDY", "PUSSY", "DICK", "F-U-C-K" "NEON", "CUM", "SHIT", "WHORE", "CUNT","NIGGER","NIGGA","FUCKER" "MAMAI", "PAPI", "HARDER", "FUCKKK" "fuck u"]
- bypass_list = ["FUCK"]
- from discord.utils import find
- @client.event
- async def on_guild_join(guild):
- general = find(lambda x: x.name == 'general', guild.text_channels)
- if general and general.permissions_for(guild.me).send_messages:
- await general.send('Hello {}!'.format(guild.name))
- @client.event
- async def on_message(message):
- print(message.content
- if message.content == "Ex!cookie":
- await client.send_message(message.channel, "Here is a cookie!:cookie:")
- if message.content == "Ex!ping":
- await client.send_message (message.channel, "pong!")
- if message.content == "command that you do":
- await client.send_message (message.channel, "bots anwser")
- if message.content == "Ex!Hi":
- await client.send_message(message.channel, "Hi :smile:")
- print("Hi :smile:")
- if message.content.upper().startswith('EX!CMDS'):
- userID = message.author.id
- await client.send_message(message.channel, "<@%s> My Prefix is Ex! ```My Commands are, Ex!hi, Ex!ping, Ex!cmds, Ex!cookie" % (userID))
- if message.content.upper().startswith('EX!NEON'):
- userID = message.author.id
- await client.send_message(message.channel, "<@%s> Neon is my master!" % (userID))
- if message.content.upper().startswith('EX!SAY'):
- args = message.content.split(" ")
- #args[0] = !SAY
- #args[1] = Hey
- #args[2] = There
- #args[1:] = Hey There
- await client.send_message(message.channel, "%s" % (" ".join(args[1:])))
- if message.content.upper().startswith('!ADMIN'):
- if "<429095989920661504, 429096096728481793>" in [role.id for role in message.author.roles]: #Replace <Role ID> with the ID of the role you want to be able to execute this command
- await client.send_message(message.channel, "You are an admin")
- else:
- await client.send_message(message.channel, "You are not an admin")
- if message.content.upper().startswith('EX!NOU'):
- await client.send_message(message.channel, "Hi :smile:")
- @client.event
- async def on_message(message):
- contents = message.content.split(" ") #contents is a list type
- for word in contents:
- if word.upper() in chat_filter:
- if not message.author.id in bypass_list:
- try:
- await client.delete_message(message)
- await client.send_message(message.channel, "**Hey!** Don't use that word again! :angry: ")
- except discord.errors.NotFound:
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement