Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- import discord
- import logging
- luckymsgs = []
- animationmsgs = []
- # Set up the logging module to output diagnostic to the console.
- logging.basicConfig()
- client = discord.Client()
- client.login('yellow151@memebig.net', 'kappa42069') # username/password
- if not client.is_logged_in:
- print('Logging in to Discord failed')
- exit(1)
- @client.event
- def on_ready():
- print('Connected!')
- print('Username: ' + client.user.name)
- print('ID: ' + client.user.id)
- print('------')
- @client.event
- def on_message(message):
- #print(message.author)
- #print(message.id)
- #if message.channel.name == "gen-1-glitched":
- saved_message = message
- if (message.content == "!luckypls" or message.content == "!luckyplsperma") and len(luckymsgs) >= 1:
- if saved_message.content == "!luckyplsperma" and saved_message.author.name != "luckytyphlosion":
- Kappa = ""
- for count in range(3):
- Kappa += "Kappa "
- client.send_message(saved_message.channel, Kappa)
- for count in range(2):
- Kappa = Kappa[:-6]
- client.send_message(saved_message.channel, Kappa)
- else:
- for message in luckymsgs:
- if message.channel != saved_message.channel:
- continue
- else:
- client.edit_message(message, "<message deleted>")
- if saved_message.content == "!luckyplsperma" and saved_message.author.name == "luckytyphlosion":
- pass
- else:
- time.sleep(6.9)
- for message in luckymsgs:
- if message.channel != saved_message.channel:
- continue
- else:
- client.edit_message(message, message.content)
- message = saved_message
- if message.author.name == "luckytyphlosion":
- if len(luckymsgs) >= 10:
- temp_message = luckymsgs.pop(0)
- #print("Popped message " + temp_message.content)
- luckymsgs.append(message)
- #print("Appended message " + message.content)
- if message.content == "test":
- client.send_message(message.channel, "icicles")
- if message.channel.name == "goldenrodnostalgia":
- if message.content == "!yolocoin":
- client.send_message(message.channel, "Congratulations on the new RIP!")
- if message.content == "!animation":
- luckypls = "!luckypls"
- tempstring = " _ _ "
- anim_msg = client.send_message(message.channel, luckypls)
- for count in range(10):
- luckypls = tempstring + luckypls + tempstring
- anim_msg = client.edit_message(anim_msg, luckypls)
- for count in range(10):
- luckypls = luckypls[5:-5]
- anim_msg = client.edit_message(anim_msg, luckypls)
- elif message.content.startswith("!scrolltext "):
- scrollmsg = message.content[12:]
- sentmsg = client.send_message(message.channel, "_ _")
- deltamsg = ""
- for char in scrollmsg:
- deltamsg += char
- anim_msg = client.edit_message(sentmsg, deltamsg)
- client.run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement