Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import discord
- token = open("token.txt", "r").read()
- client = discord.Client()
- CurseWords = ("fuck","idiot","you are cancer","raca")
- prisonList = []
- banningList = []
- kickList = []
- admins = ["129896559616720897"]
- @client.event
- async def on_ready():
- print(f'We have logged in as {client.user}')
- @client.event
- async def on_message(message):
- if message.content.startswith('!prison') and message.author.id in admins:
- users_to_ban = message.mentions[0]
- print(users_to_ban)
- role = discord.utils.get(server.roles, name="prison")
- await client.add_roles(users_to_ban, role)
- for i in CurseWords:
- if i in message.content.lower() :
- await message.channel.send('stop with that')
- await message.channel.send(message.author)
- if message.author in kickList:
- banningList.remove(message.author)
- await message.channel.send("we will ban you now")
- #await kick(message.author)
- #await message.guild.kick(message.author)
- if message.author in banningList:
- await message.channel.send("you have one more chance till I kick or put you ona time out you out")
- prisonList.remove(message.author)
- kickList.append(message.author)
- if message.author in prisonList:
- await message.channel.send("you are already in a list and you have two chance left")
- banningList.append(message.author)
- if message.author not in prisonList and message.author not in banningList and message.author not in kickList:
- prisonList.append(message.author)
- await message.channel.send('Ive not put you on a prison list{}, you now have 3 chances left'.format(message.author))
- print(prisonList)
- print(banningList)
- print(kickList)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement