3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-08 03:27:20 +00:00

changed almost all references of utils successMessage to this.sendSuccessMessage. Waiting on knub changes to finish this

This commit is contained in:
roflmaoqwerty 2020-01-11 00:39:32 +11:00
parent 3e974e84b3
commit af882627a1
17 changed files with 112 additions and 120 deletions

View file

@ -147,11 +147,7 @@ export class RemindersPlugin extends ZeppelinPlugin<TConfigSchema> {
const msUntilReminder = reminderTime.diff(now);
const timeUntilReminder = humanizeDuration(msUntilReminder, { largest: 2, round: true });
msg.channel.createMessage(
successMessage(
`I will remind you in **${timeUntilReminder}** at **${reminderTime.format("YYYY-MM-DD, HH:mm")}**`,
),
);
this.sendSuccessMessage(msg.channel, `I will remind you in **${timeUntilReminder}** at **${reminderTime.format("YYYY-MM-DD, HH:mm")}**`);
}
@d.command("reminders")
@ -194,6 +190,6 @@ export class RemindersPlugin extends ZeppelinPlugin<TConfigSchema> {
const toDelete = reminders[args.num - 1];
await this.reminders.delete(toDelete.id);
msg.channel.createMessage(successMessage("Reminder deleted"));
this.sendSuccessMessage(msg.channel, "Reminder deleted");
}
}