Add hooks to plugin API
parent
3c0352ff09
commit
815825de94
|
@ -1,4 +1,5 @@
|
|||
const attachments = require('./data/attachments');
|
||||
const { beforeNewThread } = require('./hooks');
|
||||
|
||||
module.exports = {
|
||||
getPluginAPI({ bot, knex, config, commands }) {
|
||||
|
@ -17,6 +18,9 @@ module.exports = {
|
|||
addStorageType: attachments.addStorageType,
|
||||
downloadAttachment: attachments.downloadAttachment
|
||||
},
|
||||
hooks: {
|
||||
beforeNewThread,
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue