From 324df71ce44c150963b0500000284c2cfcbba67f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 8 Feb 2019 01:36:29 +0100 Subject: [PATCH] Add easter egg 2 to the Music Bot --- discordbot.py | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/discordbot.py b/discordbot.py index 8ef37124..cabfe436 100644 --- a/discordbot.py +++ b/discordbot.py @@ -393,7 +393,8 @@ class RoyalDiscordBot(discord.Client): f"{self.command_prefix}l": self.cmd_mode, f"{self.command_prefix}mode": self.cmd_mode, f"{self.command_prefix}m": self.cmd_mode, - f"{self.command_prefix}{b'cvyyne'.decode('rot13')}": self.cmd_easter_egg_1 + f"{self.command_prefix}{b'cvyyne'.decode('rot13')}": self.cmd_easter_egg_1, + f"{self.command_prefix}{b'xqn'.decode('rot13')}": self.cmd_easter_egg_2 } if self.sentry_token: self.sentry = raven.Client(self.sentry_token, @@ -1206,6 +1207,26 @@ class RoyalDiscordBot(discord.Client): await channel.send(f"💪💪💪") logger.debug(f"Added muscles to the queue (EE1).") + # noinspection PyUnusedLocal + @command + @requires_connected_voice_client + async def cmd_easter_egg_2(self, channel: discord.TextChannel, author: discord.Member, params: typing.List[str]): + videos = [ + b"uggcf://jjj.lbhghor.pbz/jngpu?i=NLwbqZwP7cN".decode("rot13"), + b"uggcf://jjj.lbhghor.pbz/jngpu?i=UooSp-Op_RR".decode("rot13"), + b"uggcf://jjj.lbhghor.pbz/jngpu?i=XwSnd2ehrXf".decode("rot13"), + b"uggcf://jjj.lbhghor.pbz/jngpu?i=Jna2ERU1k9t".decode("rot13"), + b"uggcf://jjj.lbhghor.pbz/jngpu?i=gRWp9YkccXf".decode("rot13"), + b"uggcf://jjj.lbhghor.pbz/jngpu?i=XKr5QomUqKZ".decode("rot13"), + b"uggcf://jjj.lbhghor.pbz/jngpu?i=tImSG-Dt2cp".decode("rot13"), + b"uggcf://jjj.lbhghor.pbz/jngpu?i=u6cwSSOWjmH".decode("rot13"), + b"uggcf://jjj.lbhghor.pbz/jngpu?i=Jss8WNpEduL".decode("rot13"), + b"uggcf://jjj.lbhghor.pbz/jngpu?i=m4tyB08HDj4".decode("rot13") + ] + await self.add_video_from_url(random.sample(videos, 1)[0], enqueuer=author) + await channel.send(f"⚔️💀🤝") + logger.debug(f"Added random emojis? to the queue (EE2).") + def process(users_connection=None): logger.info("Initializing the bot...")