3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-13 13:25:03 +00:00

Fix user mentions not working for mod actions. Allow using plain username to target users with mod actions. Make error messages more consistent.

This commit is contained in:
Dragory 2019-04-19 12:25:25 +03:00
parent b76f87bbef
commit ee20363dd8
3 changed files with 295 additions and 134 deletions

View file

@ -74,7 +74,7 @@ import { AutoReactionsPlugin } from "./plugins/AutoReactionsPlugin";
import { PingableRolesPlugin } from "./plugins/PingableRolesPlugin";
import { SelfGrantableRolesPlugin } from "./plugins/SelfGrantableRolesPlugin";
import { RemindersPlugin } from "./plugins/Reminders";
import { convertDelayStringToMS } from "./utils";
import { convertDelayStringToMS, errorMessage, successMessage } from "./utils";
// Run latest database migrations
logger.info("Running database migrations");
@ -168,6 +168,14 @@ connect().then(async conn => {
return result;
},
},
sendSuccessMessageFn(channel, body) {
channel.createMessage(successMessage(body));
},
sendErrorMessageFn(channel, body) {
channel.createMessage(errorMessage(body));
},
},
});