mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat(bot): add pk;dashboard command
This commit is contained in:
parent
7fb1681cac
commit
24eda3a862
3 changed files with 5 additions and 0 deletions
|
|
@ -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 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 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 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 <id|link> [delete|author]", "Looks up a proxied message");
|
public static Command Message = new Command("message", "message <id|link> [delete|author]", "Looks up a proxied message");
|
||||||
public static Command MessageEdit = new Command("edit", "edit [link] <text>", "Edit a previously proxied message");
|
public static Command MessageEdit = new Command("edit", "edit [link] <text>", "Edit a previously proxied message");
|
||||||
public static Command MessageReproxy = new Command("reproxy", "reproxy [link] <member>", "Reproxy a previously proxied message using a different member");
|
public static Command MessageReproxy = new Command("reproxy", "reproxy [link] <member>", "Reproxy a previously proxied message using a different member");
|
||||||
|
|
|
||||||
|
|
@ -105,6 +105,8 @@ public partial class CommandTree
|
||||||
return ctx.Execute<Random>(GroupRandom, r => r.Group(ctx, ctx.System));
|
return ctx.Execute<Random>(GroupRandom, r => r.Group(ctx, ctx.System));
|
||||||
else
|
else
|
||||||
return ctx.Execute<Random>(MemberRandom, m => m.Member(ctx, ctx.System));
|
return ctx.Execute<Random>(MemberRandom, m => m.Member(ctx, ctx.System));
|
||||||
|
if (ctx.Match("dashboard", "dash"))
|
||||||
|
return ctx.Execute<Help>(Dashboard, m => m.Dashboard(ctx));
|
||||||
|
|
||||||
// remove compiler warning
|
// remove compiler warning
|
||||||
return ctx.Reply(
|
return ctx.Reply(
|
||||||
|
|
|
||||||
|
|
@ -172,4 +172,6 @@ public class Help
|
||||||
});
|
});
|
||||||
|
|
||||||
public Task Explain(Context ctx) => ctx.Reply(explanation);
|
public Task Explain(Context ctx) => ctx.Reply(explanation);
|
||||||
|
|
||||||
|
public Task Dashboard(Context ctx) => ctx.Reply("The PluralKit dashboard is at <https://dash.pluralkit.me>");
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue