From d2807f402da2a9ae98ef0784e5eeabb71b4bc9c8 Mon Sep 17 00:00:00 2001 From: dusk Date: Wed, 1 Oct 2025 13:54:37 +0000 Subject: [PATCH] implement rest of the fun commands --- PluralKit.Bot/CommandMeta/CommandTree.cs | 17 ++++++++--------- crates/command_definitions/src/fun.rs | 8 ++++++++ 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/PluralKit.Bot/CommandMeta/CommandTree.cs b/PluralKit.Bot/CommandMeta/CommandTree.cs index c3107953..3f9955ae 100644 --- a/PluralKit.Bot/CommandMeta/CommandTree.cs +++ b/PluralKit.Bot/CommandMeta/CommandTree.cs @@ -76,6 +76,14 @@ public partial class CommandTree Commands.CfgApTimeoutUpdate(var param, _) => ctx.Execute(null, m => m.EditAutoproxyTimeout(ctx, param.timeout)), Commands.FunThunder => ctx.Execute(null, m => m.Thunder(ctx)), Commands.FunMeow => ctx.Execute(null, m => m.Meow(ctx)), + Commands.FunPokemon => ctx.Execute(null, m => m.Mn(ctx)), + Commands.FunFire => ctx.Execute(null, m => m.Fire(ctx)), + Commands.FunFreeze => ctx.Execute(null, m => m.Freeze(ctx)), + Commands.FunStarstorm => ctx.Execute(null, m => m.Starstorm(ctx)), + Commands.FunFlash => ctx.Execute(null, m => m.Flash(ctx)), + Commands.FunRool => ctx.Execute(null, m => m.Rool(ctx)), + Commands.Amogus => ctx.Execute(null, m => m.Sus(ctx)), + Commands.FunError => ctx.Execute(null, m => m.Error(ctx)), Commands.SystemInfo(var param, var flags) => ctx.Execute(SystemInfo, m => m.Query(ctx, param.target, flags.all, flags.@public, flags.@private)), Commands.SystemInfoSelf(_, var flags) => ctx.Execute(SystemInfo, m => m.Query(ctx, ctx.System, flags.all, flags.@public, flags.@private)), Commands.SystemNew(var param, _) => ctx.Execute(SystemNew, m => m.New(ctx, null)), @@ -279,15 +287,6 @@ public partial class CommandTree if (ctx.Match("debug")) return ctx.Execute(ProxyCheck, m => m.MessageProxyCheck(ctx)); if (ctx.Match("invite")) return ctx.Execute(Invite, m => m.Invite(ctx)); - if (ctx.Match("mn")) return ctx.Execute(null, m => m.Mn(ctx)); - if (ctx.Match("fire")) return ctx.Execute(null, m => m.Fire(ctx)); - if (ctx.Match("thunder")) return ctx.Execute(null, m => m.Thunder(ctx)); - if (ctx.Match("freeze")) return ctx.Execute(null, m => m.Freeze(ctx)); - if (ctx.Match("starstorm")) return ctx.Execute(null, m => m.Starstorm(ctx)); - if (ctx.Match("flash")) return ctx.Execute(null, m => m.Flash(ctx)); - if (ctx.Match("rool")) return ctx.Execute(null, m => m.Rool(ctx)); - if (ctx.Match("sus")) return ctx.Execute(null, m => m.Sus(ctx)); - if (ctx.Match("error")) return ctx.Execute(null, m => m.Error(ctx)); if (ctx.Match("stats", "status")) return ctx.Execute(null, m => m.Stats(ctx)); if (ctx.Match("permcheck")) return ctx.Execute(PermCheck, m => m.PermCheckGuild(ctx)); diff --git a/crates/command_definitions/src/fun.rs b/crates/command_definitions/src/fun.rs index 4119b71d..f16c09e1 100644 --- a/crates/command_definitions/src/fun.rs +++ b/crates/command_definitions/src/fun.rs @@ -4,6 +4,14 @@ pub fn cmds() -> impl Iterator { [ command!("thunder" => "fun_thunder"), command!("meow" => "fun_meow"), + command!("mn" => "fun_pokemon"), + command!("fire" => "fun_fire"), + command!("freeze" => "fun_freeze"), + command!("starstorm" => "fun_starstorm"), + command!("flash" => "fun_flash"), + command!("rool" => "fun_rool"), + command!("sus" => "amogus"), + command!("error" => "fun_error"), ] .into_iter() }