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:
parent
b76f87bbef
commit
ee20363dd8
3 changed files with 295 additions and 134 deletions
10
src/index.ts
10
src/index.ts
|
@ -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));
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue