mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Only no u half the time
This commit is contained in:
@@ -10,7 +10,9 @@ module.exports = class AutoReplyCommand extends Command {
|
||||
|
||||
run(msg, args, fromPattern) {
|
||||
if (msg.guild && !msg.channel.permissionsFor(this.client.user).has('SEND_MESSAGES')) return null;
|
||||
return this.reply ? msg.reply(this.generateText(fromPattern)) : msg.say(this.generateText(fromPattern));
|
||||
const text = this.generateText(fromPattern);
|
||||
if (!text) return null;
|
||||
return this.reply ? msg.reply(text) : msg.say(text);
|
||||
}
|
||||
|
||||
generateText() {
|
||||
|
||||
Reference in New Issue
Block a user