diff --git a/src/plugins/Reminders.ts b/src/plugins/Reminders.ts index dbd8a19b..bbda379e 100644 --- a/src/plugins/Reminders.ts +++ b/src/plugins/Reminders.ts @@ -68,8 +68,9 @@ export class RemindersPlugin extends ZeppelinPlugin { this.postRemindersTimeout = setTimeout(() => this.postDueRemindersLoop(), REMINDER_LOOP_TIME); } - @d.command("remind", " ") - @d.command("remindme", " ") + @d.command("remind", " ", { + aliases: ["remindme"], + }) @d.permission("can_use") async addReminderCmd(msg: Message, args: { time: string; reminder: string }) { const now = moment(); @@ -132,8 +133,9 @@ export class RemindersPlugin extends ZeppelinPlugin { createChunkedMessage(msg.channel, lines.join("\n")); } - @d.command("reminders delete", "") - @d.command("reminders d", "") + @d.command("reminders delete", "", { + aliases: ["reminders d"], + }) @d.permission("can_use") async deleteReminderCmd(msg: Message, args: { num: number }) { const reminders = await this.reminders.getRemindersByUserId(msg.author.id); diff --git a/src/plugins/SelfGrantableRolesPlugin.ts b/src/plugins/SelfGrantableRolesPlugin.ts index 4fd1a189..2a5b462e 100644 --- a/src/plugins/SelfGrantableRolesPlugin.ts +++ b/src/plugins/SelfGrantableRolesPlugin.ts @@ -214,8 +214,9 @@ export class SelfGrantableRolesPlugin extends ZeppelinPlugin { /** * COMMAND: Set slowmode for the specified channel */ - @d.command("slowmode", " ") - @d.command("slowmode", "") + @d.command("slowmode", " ", { + overloads: [""], + }) @d.permission("can_manage") async slowmodeCmd(msg: Message, args: { channel?: GuildChannel & TextChannel; time: string }) { const channel = args.channel || msg.channel; diff --git a/src/plugins/Tags.ts b/src/plugins/Tags.ts index 99666174..9bf2f801 100644 --- a/src/plugins/Tags.ts +++ b/src/plugins/Tags.ts @@ -102,9 +102,9 @@ export class TagsPlugin extends ZeppelinPlugin { this.savedMessages.events.off("delete", this.onMessageDeleteFn); } - @d.command("tag list") - @d.command("tags") - @d.command("taglist") + @d.command("tag list", [], { + aliases: ["tags", "taglist"], + }) @d.permission("can_list") async tagListCmd(msg: Message) { const tags = await this.tags.all(); diff --git a/src/plugins/Utility.ts b/src/plugins/Utility.ts index 5a833a31..01e7e483 100644 --- a/src/plugins/Utility.ts +++ b/src/plugins/Utility.ts @@ -324,8 +324,9 @@ export class UtilityPlugin extends ZeppelinPlugin { }); } - @d.command("clean", "") - @d.command("clean all", "") + @d.command("clean", "", { + aliases: ["clean all"], + }) @d.permission("can_clean") async cleanAllCmd(msg: Message, args: { count: number }) { if (args.count > MAX_CLEAN_COUNT || args.count <= 0) {