mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-11 20:55:01 +00:00
Fixes, refactoring and PR feedback
This commit is contained in:
parent
0be54912c4
commit
893a77d562
202 changed files with 1037 additions and 1069 deletions
|
@ -38,7 +38,7 @@ export const RemindCmd = remindersCmd({
|
|||
// "Delay string" i.e. e.g. "2h30m"
|
||||
const ms = convertDelayStringToMS(args.time);
|
||||
if (ms === null) {
|
||||
pluginData.getPlugin(CommonPlugin).sendErrorMessage(msg, "Invalid reminder time");
|
||||
void pluginData.state.common.sendErrorMessage(msg, "Invalid reminder time");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ export const RemindCmd = remindersCmd({
|
|||
}
|
||||
|
||||
if (!reminderTime.isValid() || reminderTime.isBefore(now)) {
|
||||
pluginData.getPlugin(CommonPlugin).sendErrorMessage(msg, "Invalid reminder time");
|
||||
void pluginData.state.common.sendErrorMessage(msg, "Invalid reminder time");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -67,8 +67,6 @@ export const RemindCmd = remindersCmd({
|
|||
pluginData.getPlugin(TimeAndDatePlugin).getDateFormat("pretty_datetime"),
|
||||
);
|
||||
|
||||
pluginData
|
||||
.getPlugin(CommonPlugin)
|
||||
.sendSuccessMessage(msg, `I will remind you in **${timeUntilReminder}** at **${prettyReminderTime}**`);
|
||||
void pluginData.state.common.sendSuccessMessage(msg, `I will remind you in **${timeUntilReminder}** at **${prettyReminderTime}**`);
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue