mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-17 03:00:13 +00:00
refactor: move dashboard command into Help.cs
This commit is contained in:
parent
c26b61ce62
commit
a43f825f86
3 changed files with 4 additions and 1 deletions
|
|
@ -92,6 +92,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");
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ public partial class CommandTree
|
||||||
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"))
|
if (ctx.Match("dashboard", "dash"))
|
||||||
return ctx.Reply("The PluralKit dashboard is at <https://dash.pluralkit.me>");
|
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