1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +00:00
This commit is contained in:
Steffo 2018-10-10 21:37:18 +02:00
parent a7700a42f2
commit 69176f60c5

View file

@ -38,14 +38,14 @@ queue_emojis = [":one:",
":keycap_ten:"] ":keycap_ten:"]
# Zalgo text # Zalgo text
zalgo_up = [' ̍', ' ̎', ' ̄', ' ̅', ' ̿', ' ̑', ' ̆', ' ̐', ' ͒', ' ͗', ' ͑', ' ̇', ' ̈', ' ̊', ' ͂', ' ̓', ' ̈́', ' ͊', zalgo_up = ['̍', '̎', '̄', '̅', '̿', '̑', '̆', '̐', '͒', '͗', '͑', '̇', '̈', '̊', '͂', '̓', '̈́', '͊',
' ͋', ' ͌', ' ̃', ' ̂', ' ̌', ' ͐', ' ́', ' ̋', ' ̏', ' ̽', ' ̉', ' ͣ', ' ͤ', ' ͥ', ' ͦ', ' ͧ', ' ͨ', ' ͩ', '͋', '͌', '̃', '̂', '̌', '͐', '́', '̋', '̏', '̽', '̉', 'ͣ', 'ͤ', 'ͥ', 'ͦ', 'ͧ', 'ͨ', 'ͩ',
' ͪ', ' ͫ', ' ͬ', ' ͭ', ' ͮ', ' ͯ', ' ̾', ' ͛', ' ͆', ' ̚', ] 'ͪ', 'ͫ', 'ͬ', 'ͭ', 'ͮ', 'ͯ', '̾', '͛', '͆', '̚', ]
zalgo_down = ['̖', ' ̗', ' ̘', ' ̙', ' ̜', ' ̝', ' ̞', ' ̟', ' ̠', ' ̤', ' ̥', ' ̦', ' ̩', ' ̪', ' ̫', ' ̬', ' ̭', ' ̮', zalgo_down = ['̖', '̗', '̘', '̙', '̜', '̝', '̞', '̟', '̠', '̤', '̥', '̦', '̩', '̪', '̫', '̬', '̭', '̮',
' ̯', ' ̰', ' ̱', ' ̲', ' ̳', ' ̹', ' ̺', ' ̻', ' ̼', ' ͅ', ' ͇', ' ͈', ' ͉', ' ͍', ' ͎', ' ͓', ' ͔', ' ͕', '̯', '̰', '̱', '̲', '̳', '̹', '̺', '̻', '̼', 'ͅ', '͇', '͈', '͉', '͍', '͎', '͓', '͔', '͕',
' ͖', ' ͙', ' ͚', ' ', ] '͖', '͙', '͚', '', ]
zalgo_middle = [' ̕', ' ̛', ' ̀', ' ́', ' ͘', ' ̡', ' ̢', ' ̧', ' ̨', ' ̴', ' ̵', ' ̶', ' ͜', ' ͝', ' ͞', ' ͟', ' ͠', ' ͢', zalgo_middle = ['̕', '̛', '̀', '́', '͘', '̡', '̢', '̧', '̨', '̴', '̵', '̶', '͜', '͝', '͞', '͟', '͠', '͢',
' ̸', ' ̷', ' ͡', ] '̸', '̷', '͡', ]
# Halloween images # Halloween images
images = ["https://i.imgur.com/PNCRnRe.png", "https://i.imgur.com/iY7y54n.png", "https://i.imgur.com/v1QBVZ2.png"] images = ["https://i.imgur.com/PNCRnRe.png", "https://i.imgur.com/iY7y54n.png", "https://i.imgur.com/v1QBVZ2.png"]
@ -570,8 +570,8 @@ class RoyalDiscordBot(discord.Client):
# EASTER EGG, REMOVE LATER # EASTER EGG, REMOVE LATER
if "ghostbusters" in now_playing.plain_text().lower(): if "ghostbusters" in now_playing.plain_text().lower():
halloween = await loop.run_in_executor(executor, session.query(db.Halloween) halloween = await loop.run_in_executor(executor, session.query(db.Halloween)
.filter_by(royal=enqueuer.royal) .filter_by(royal=enqueuer.royal)
.one_or_none) .one_or_none)
halloween[5] = datetime.datetime.now() halloween[5] = datetime.datetime.now()
# END # END
await loop.run_in_executor(executor, session.commit) await loop.run_in_executor(executor, session.commit)
@ -712,7 +712,7 @@ class RoyalDiscordBot(discord.Client):
logger.info(f"Radio message added to the queue.") logger.info(f"Radio message added to the queue.")
# HALLOWEEN # HALLOWEEN
if not random.randrange(4): if not random.randrange(4):
await self.video_queue.insert(0, SecretVideo(file="despair.ogg", enqueuer=None)) self.video_queue.insert(0, SecretVideo(file="despair.ogg", enqueuer=None))
target = random.sample([m for m in self.main_guild.members if len(m.roles) > 1], 1)[0] target = random.sample([m for m in self.main_guild.members if len(m.roles) > 1], 1)[0]
logger.debug(f"Despair roll successful, sending to {target.name}.") logger.debug(f"Despair roll successful, sending to {target.name}.")
if target.dm_channel is None: if target.dm_channel is None: