refactoring (#4)

This commit is contained in:
2021-04-10 19:17:18 +02:00
committed by GitHub
parent 9cf66c7435
commit 24a07c4588
21 changed files with 240 additions and 173 deletions

View File

@ -1,3 +1,4 @@
const { findMessage }= require('@dsabot/findMessage');
const globals = require('../globals');
const db = globals.db;
module.exports = {
@ -10,7 +11,7 @@ module.exports = {
db.remove({
user: message.author.tag,
}, {}, function(err, numRemoved) {
message.reply(globals.Replies.find(x => x.id === 'DELETED_DATA').string);
return message.reply(findMessage('DELETED_DATA'));
});
},
};