Skip to content

Commit

Permalink
fix: make replies don't return
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperchupuDev committed Oct 12, 2021
1 parent 76cb992 commit a7352b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion events/messageCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
name: 'messageCreate',
once: false,
async execute(message, client) {
if (message.author.bot || message.author.system || message.type !== 'DEFAULT' || !message.content) {
if (message.author.bot || message.author.system || message.type !== 'DEFAULT' && message.type !== 'REPLY' || !message.content) {
return;
}
const database = client.db.prepare('SELECT * FROM guilds WHERE id = ?').get(message.guildId);
Expand Down
2 changes: 1 addition & 1 deletion events/messageUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
await newMessage.fetch();
}

if (newMessage.author.bot || newMessage.author.system || newMessage.type !== 'DEFAULT' || !newMessage.content) return;
if (newMessage.author.bot || newMessage.author.system || newMessage.type !== 'DEFAULT' && newMessage.type !== 'REPLY' || !newMessage.content) return;
const database = client.db.prepare('SELECT * FROM guilds WHERE id = ?').get(newMessage.guildId);
require('../detector/detector.js')(client, newMessage, database, true);
}
Expand Down

0 comments on commit a7352b1

Please sign in to comment.