diff --git a/src/plugins.js b/src/plugins.js index 64c9df6..87bb687 100644 --- a/src/plugins.js +++ b/src/plugins.js @@ -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, + }, }; },