Add more command aliases
This commit is contained in:
parent
352940abbd
commit
31173af87d
@ -6,9 +6,21 @@ namespace PluralKit.Bot.Commands
|
||||
{
|
||||
public class HelpCommands: ModuleBase<PKCommandContext>
|
||||
{
|
||||
[Command("help")]
|
||||
[Group("help")]
|
||||
public class HelpGroup: ModuleBase<PKCommandContext>
|
||||
{
|
||||
[Command("proxy")]
|
||||
[Priority(1)]
|
||||
[Remarks("help proxy")]
|
||||
public async Task HelpProxy()
|
||||
{
|
||||
await Context.Channel.SendMessageAsync(
|
||||
"The proxy help page has been moved! See the website: https://pluralkit.me/guide#proxying");
|
||||
}
|
||||
|
||||
[Command]
|
||||
[Remarks("help")]
|
||||
public async Task HelpRoot([Remainder] string _ignored)
|
||||
public async Task HelpRoot([Remainder] string _ignored = null)
|
||||
{
|
||||
await Context.Channel.SendMessageAsync(embed: new EmbedBuilder()
|
||||
.WithTitle("PluralKit")
|
||||
@ -23,6 +35,7 @@ namespace PluralKit.Bot.Commands
|
||||
.WithColor(Color.Blue)
|
||||
.Build());
|
||||
}
|
||||
}
|
||||
|
||||
[Command("commands")]
|
||||
[Remarks("commands")]
|
||||
|
@ -23,6 +23,7 @@ namespace PluralKit.Bot.Commands
|
||||
public override string ContextNoun => "member";
|
||||
|
||||
[Command("new")]
|
||||
[Alias("n", "add", "create", "register")]
|
||||
[Remarks("member new <name>")]
|
||||
[MustHaveSystem]
|
||||
public async Task NewMember([Remainder] string memberName) {
|
||||
@ -82,7 +83,7 @@ namespace PluralKit.Bot.Commands
|
||||
}
|
||||
|
||||
[Command("description")]
|
||||
[Alias("info", "bio", "text")]
|
||||
[Alias("info", "bio", "text", "desc")]
|
||||
[Remarks("member <member> description <description>")]
|
||||
[MustPassOwnMember]
|
||||
public async Task MemberDescription([Remainder] string description = null) {
|
||||
@ -174,7 +175,7 @@ namespace PluralKit.Bot.Commands
|
||||
}
|
||||
|
||||
[Command("delete")]
|
||||
[Alias("remove", "erase", "yeet")]
|
||||
[Alias("remove", "destroy", "erase", "yeet")]
|
||||
[Remarks("member <member> delete")]
|
||||
[MustPassOwnMember]
|
||||
public async Task MemberDelete()
|
||||
|
@ -7,6 +7,7 @@ namespace PluralKit.Bot.Commands {
|
||||
public BotConfig BotConfig { get; set; }
|
||||
|
||||
[Command("invite")]
|
||||
[Alias("inv")]
|
||||
[Remarks("invite")]
|
||||
public async Task Invite()
|
||||
{
|
||||
|
@ -27,6 +27,7 @@ namespace PluralKit.Bot.Commands
|
||||
|
||||
[Command("message")]
|
||||
[Remarks("message <messageid>")]
|
||||
[Alias("msg")]
|
||||
public async Task GetMessage(ulong messageId)
|
||||
{
|
||||
var message = await Messages.Get(messageId);
|
||||
@ -37,6 +38,7 @@ namespace PluralKit.Bot.Commands
|
||||
|
||||
[Command("message")]
|
||||
[Remarks("message <messageid>")]
|
||||
[Alias("msg")]
|
||||
public async Task GetMessage(IMessage msg) => await GetMessage(msg.Id);
|
||||
}
|
||||
}
|
@ -22,6 +22,7 @@ namespace PluralKit.Bot.Commands
|
||||
public async Task Switch(params PKMember[] members) => await DoSwitchCommand(members);
|
||||
|
||||
[Command("out")]
|
||||
[Alias("none")]
|
||||
[Remarks("switch out")]
|
||||
[MustHaveSystem]
|
||||
public async Task SwitchOut() => await DoSwitchCommand(new PKMember[] { });
|
||||
@ -56,6 +57,7 @@ namespace PluralKit.Bot.Commands
|
||||
}
|
||||
|
||||
[Command("move")]
|
||||
[Alias("shift")]
|
||||
[Remarks("switch move <date/time>")]
|
||||
[MustHaveSystem]
|
||||
public async Task SwitchMove([Remainder] string str)
|
||||
@ -101,6 +103,7 @@ namespace PluralKit.Bot.Commands
|
||||
|
||||
[Command("delete")]
|
||||
[Remarks("switch delete")]
|
||||
[Alias("remove", "erase", "cancel", "yeet")]
|
||||
[MustHaveSystem]
|
||||
public async Task SwitchDelete()
|
||||
{
|
||||
|
@ -37,6 +37,7 @@ namespace PluralKit.Bot.Commands
|
||||
}
|
||||
|
||||
[Command("new")]
|
||||
[Alias("register", "create", "init", "add", "make")]
|
||||
[Remarks("system new <name>")]
|
||||
public async Task New([Remainder] string systemName = null)
|
||||
{
|
||||
@ -49,6 +50,7 @@ namespace PluralKit.Bot.Commands
|
||||
}
|
||||
|
||||
[Command("name")]
|
||||
[Alias("rename", "changename")]
|
||||
[Remarks("system name <name>")]
|
||||
[MustHaveSystem]
|
||||
public async Task Name([Remainder] string newSystemName = null) {
|
||||
@ -60,6 +62,7 @@ namespace PluralKit.Bot.Commands
|
||||
}
|
||||
|
||||
[Command("description")]
|
||||
[Alias("desc")]
|
||||
[Remarks("system description <description>")]
|
||||
[MustHaveSystem]
|
||||
public async Task Description([Remainder] string newDescription = null) {
|
||||
@ -96,6 +99,7 @@ namespace PluralKit.Bot.Commands
|
||||
}
|
||||
|
||||
[Command("delete")]
|
||||
[Alias("remove", "destroy", "erase", "yeet")]
|
||||
[Remarks("system delete")]
|
||||
[MustHaveSystem]
|
||||
public async Task Delete() {
|
||||
@ -108,6 +112,7 @@ namespace PluralKit.Bot.Commands
|
||||
}
|
||||
|
||||
[Group("list")]
|
||||
[Alias("l", "members")]
|
||||
public class SystemListCommands: ModuleBase<PKCommandContext> {
|
||||
public MemberStore Members { get; set; }
|
||||
|
||||
@ -158,6 +163,7 @@ namespace PluralKit.Bot.Commands
|
||||
}
|
||||
|
||||
[Command("fronter")]
|
||||
[Alias("f", "front", "fronters")]
|
||||
[Remarks("system [system] fronter")]
|
||||
public async Task SystemFronter()
|
||||
{
|
||||
@ -171,6 +177,7 @@ namespace PluralKit.Bot.Commands
|
||||
}
|
||||
|
||||
[Command("fronthistory")]
|
||||
[Alias("fh", "history", "switches")]
|
||||
[Remarks("system [system] fronthistory")]
|
||||
public async Task SystemFrontHistory()
|
||||
{
|
||||
@ -184,6 +191,7 @@ namespace PluralKit.Bot.Commands
|
||||
}
|
||||
|
||||
[Command("frontpercent")]
|
||||
[Alias("frontbreakdown", "frontpercent", "front%", "fp")]
|
||||
[Remarks("system [system] frontpercent [duration]")]
|
||||
public async Task SystemFrontPercent(string durationStr = "30d")
|
||||
{
|
||||
@ -201,6 +209,7 @@ namespace PluralKit.Bot.Commands
|
||||
}
|
||||
|
||||
[Command("timezone")]
|
||||
[Alias("tz")]
|
||||
[Remarks("system timezone [timezone]")]
|
||||
[MustHaveSystem]
|
||||
public async Task SystemTimezone([Remainder] string zoneStr = null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user