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

automod: add default configs for actions

This commit is contained in:
Dragory 2020-07-30 01:45:14 +03:00
parent 4eda695911
commit 13e45f4c54
16 changed files with 64 additions and 19 deletions

View file

@ -23,6 +23,8 @@ export const ReplyAction = automodAction({
}),
]),
defaultConfig: {},
async apply({ pluginData, contexts, actionConfig }) {
const contextsWithTextChannels = contexts
.filter(c => c.message?.channel_id)