Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import discord
- import random
- import os
- client = discord.Client()
- @client.event
- async def on_ready():
- print('We have logged in as {0.user}'.format(client))
- @client.event
- async def on_message(message):
- if message.author == client.user:
- return
- # await message.channel.send(message.author)
- auth = message.author
- generalmessages = ['are you guys listening to this noob!?!?',
- 'if life is a feature then you are a bug',
- 'go back to leetcode',
- 'that\'s what she said',
- 'did you really just say that?',
- 'go rethink your life, noob',
- 'what a clown']
- adminmessages = ['omg mr admin hi', 'ask not what the server can do for you, but what you can do for the server']
- redmessages = ['there\'s a reason bricks are painted red', 'i did not know rating inflation made newbies become red', 'Get a life bruh! when she said its not hard enough you tried to solve a 3500 rated problem']
- yellowemssages = ['you\'re not even red, fuck data structures and go learn some binary search', 'you are not red; you are not purple; you are just wasting your time']
- purplemessages = ['thank you for your service as a member of the free fodder of division 1', 'what does it feel like to be at the bottom of the food chain?']
- expertmessages = ['blue blue orz', 'you are not even purple smh my head', 'lmao you in that useless place between div3 and div1', 'did you know that expert is the most common rank on CodeForces? you are so below average smh']
- specialistmessages = ['bruh why tf you still cyan', 'imagine div3s being rated holyfuck', 'you are still at the rank CodeForces gave you when you joined; think about that']
- pupilmessages = ['you are in fooking rating deficit smh my head', 'bruh someone deport these green idiots to CodeForces Junior or something', 'someone ban this greedian already']
- newbiemessages = ['holy shit, just quit CP already', 'bruh someone deport these grey idiots to CodeForces Junior or something', 'lmao who tf asked your opinion, grey noob?', 'how the fuck can someone even be at grey even after their first 6 contests; like how tf is it even possible; how do you fooking do it lmao']
- p = random.randint(1, 100)
- prob = 75
- generalprob = 50
- if(message.content == "insult me"):
- prob = random.choice([prob - 1, prob + 1, prob + 2])
- if p >= 1 and p <= prob:
- return
- prob = random.randint(1, 100)
- if(prob <= generalprob):
- await message.channel.send(random.choice(generalmessages))
- return
- if "admin" in [y.name.lower() for y in auth.roles]:
- await message.channel.send("omg mr admin hi")
- elif ("grandmaster" in [y.name.lower() for y in auth.roles]) or ("international grandmaster" in [y.name.lower() for y in auth.roles]):
- await message.channel.send(random.choice(redmessages))
- elif ("master" in [y.name.lower() for y in auth.roles]) or ("international master" in [y.name.lower() for y in auth.roles]):
- await message.channel.send(random.choice(yellowemssages))
- elif ("candidate master" in [y.name.lower() for y in auth.roles]):
- await message.channel.send(random.choice(purplemessages))
- elif "expert" in [y.name.lower() for y in auth.roles]:
- await message.channel.send(random.choice(expertmessages))
- elif "specialist" in [y.name.lower() for y in auth.roles]:
- await message.channel.send(random.choice(specialistmessages))
- elif "pupil" in [y.name.lower() for y in auth.roles]:
- await message.channel.send(random.choice(pupilmessages))
- elif "newbie" in [y.name.lower() for y in auth.roles]:
- await message.channel.send(random.choice(newbiemessages))
- tokenfile = open('lairtoken.txt', 'r')
- tokenstring = tokenfile.read()
- client.run(tokenstring)
Add Comment
Please, Sign In to add comment