forked from Galactic/galactic-bot
more fixes
This commit is contained in:
parent
e1dd3f1513
commit
61015c0e3a
@ -398,7 +398,8 @@ module.exports = class AutoModeration extends Observer {
|
||||
this.logger.error('Error in message flag:\n' + err.stack);
|
||||
});
|
||||
|
||||
await this.client.storageManager.mongodb.wordwatcher.insertOne({
|
||||
// Only insert if actions are defined
|
||||
if(actionRow) await this.client.storageManager.mongodb.wordwatcher.insertOne({
|
||||
message: sent.id,
|
||||
target: msg.id,
|
||||
channel: msg.channel.id,
|
||||
|
Loading…
Reference in New Issue
Block a user