Framework Rewrite

This commit is contained in:
Dragon Fire
2021-06-05 12:17:33 -04:00
parent 5c9f237321
commit 7917766ce3
48 changed files with 1101 additions and 294 deletions
+2 -2
View File
@@ -8,9 +8,9 @@ module.exports = class AutoReplyCommand extends Command {
this.throttling = null;
}
run(msg, args, fromPattern) {
run(msg) {
if (msg.guild && !msg.channel.permissionsFor(this.client.user).has('SEND_MESSAGES')) return null;
const text = this.generateText(fromPattern);
const text = this.generateText();
if (!text) return null;
return this.reply ? msg.reply(text) : msg.say(text);
}