diff --git a/PluralKit.Bot/CommandMeta/CommandHelp.cs b/PluralKit.Bot/CommandMeta/CommandHelp.cs index 843e2e1d..7f840854 100644 --- a/PluralKit.Bot/CommandMeta/CommandHelp.cs +++ b/PluralKit.Bot/CommandMeta/CommandHelp.cs @@ -93,6 +93,7 @@ public partial class CommandTree public static Command Export = new Command("export", "export", "Exports system information to a data file"); public static Command Help = new Command("help", "help", "Shows help information about PluralKit"); public static Command Explain = new Command("explain", "explain", "Explains the basics of systems and proxying"); + public static Command Dashboard = new Command("dashboard", "dashboard", "Get a link to the PluralKit dashboard"); public static Command Message = new Command("message", "message [delete|author]", "Looks up a proxied message"); public static Command MessageEdit = new Command("edit", "edit [link] ", "Edit a previously proxied message"); public static Command MessageReproxy = new Command("reproxy", "reproxy [link] ", "Reproxy a previously proxied message using a different member"); diff --git a/PluralKit.Bot/CommandMeta/CommandTree.cs b/PluralKit.Bot/CommandMeta/CommandTree.cs index 9e2f27e4..aa45ab6c 100644 --- a/PluralKit.Bot/CommandMeta/CommandTree.cs +++ b/PluralKit.Bot/CommandMeta/CommandTree.cs @@ -105,6 +105,8 @@ public partial class CommandTree return ctx.Execute(GroupRandom, r => r.Group(ctx, ctx.System)); else return ctx.Execute(MemberRandom, m => m.Member(ctx, ctx.System)); + if (ctx.Match("dashboard", "dash")) + return ctx.Execute(Dashboard, m => m.Dashboard(ctx)); // remove compiler warning return ctx.Reply( diff --git a/PluralKit.Bot/Commands/Help.cs b/PluralKit.Bot/Commands/Help.cs index 76369428..e10365c2 100644 --- a/PluralKit.Bot/Commands/Help.cs +++ b/PluralKit.Bot/Commands/Help.cs @@ -172,4 +172,6 @@ public class Help }); public Task Explain(Context ctx) => ctx.Reply(explanation); + + public Task Dashboard(Context ctx) => ctx.Reply("The PluralKit dashboard is at "); } \ No newline at end of file