From a98df69f67a83ffe5c72cfdc078c4b10d3dfcb66 Mon Sep 17 00:00:00 2001 From: Bella | Nightshade <47324660+xBelladonna@users.noreply.github.com> Date: Tue, 5 Mar 2019 21:31:03 +0930 Subject: [PATCH] Added easter eggs (#52) Added easter eggs of the bound to Earth variety --- src/pluralkit/bot/commands/__init__.py | 6 ++++++ src/pluralkit/bot/commands/misc_commands.py | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/pluralkit/bot/commands/__init__.py b/src/pluralkit/bot/commands/__init__.py index c4b2d6eb..b00a2312 100644 --- a/src/pluralkit/bot/commands/__init__.py +++ b/src/pluralkit/bot/commands/__init__.py @@ -194,6 +194,12 @@ async def command_root(ctx: CommandContext): await misc_commands.help_root(ctx) elif ctx.match("tell"): await misc_commands.tell(ctx) + elif ctx.match("fire"): + await misc_commands.pkfire(ctx) + elif ctx.match("thunder"): + await misc_commands.pkthunder(ctx) + elif ctx.match("starstorm"): + await misc_commands.pkstarstorm(ctx) else: raise CommandError("Unknown command {}. For a list of commands, type `pk;help commands`.".format(ctx.pop_str())) diff --git a/src/pluralkit/bot/commands/misc_commands.py b/src/pluralkit/bot/commands/misc_commands.py index 07960491..58a76019 100644 --- a/src/pluralkit/bot/commands/misc_commands.py +++ b/src/pluralkit/bot/commands/misc_commands.py @@ -94,6 +94,7 @@ async def export(ctx: CommandContext): await working_msg.delete() f = io.BytesIO(json.dumps(data).encode("utf-8")) + await ctx.message.channel.send(content="Export successful! File sent in your DMs.") await ctx.message.author.send(content="Here you go!", file=discord.File(fp=f, filename="pluralkit_system.json")) @@ -110,3 +111,14 @@ async def tell(ctx: CommandContext): # lol error handling await ctx.client.get_channel(int(channel)).send(content="[dev message] " + message) await ctx.reply_ok("Sent!") + + +# Easter eggs lmao because why not +async def pkfire(ctx: CommandContext): + await ctx.message.channel.send("*A giant lightning bolt propmptly erupts into a pillar of fire as it hits your opponent.*") + +async def pkthunder(ctx: CommandContext): + await ctx.message.channel.send("*A giant ball of lightning is conjured and fired directly at your opponent, vanquishing them.*") + +async def pkstarstorm(ctx: CommandContext): + await ctx.message.channel.send("*Vibrant colours burst forth from the sky as meteors rain down upon your opponent.*")