mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 06:42:50 +02:00
Same change in clevs/subreddit
This commit is contained in:
@@ -35,7 +35,10 @@ module.exports = class CleverbotCommand extends Command {
|
||||
}
|
||||
|
||||
async run(msg, { text }, fromPattern) {
|
||||
if (fromPattern) text = msg.patternMatches[2];
|
||||
if (fromPattern) {
|
||||
if (msg.guild && !msg.channel.permissionsFor(this.client.user).has('SEND_MESSAGES')) return null;
|
||||
text = msg.patternMatches[2];
|
||||
}
|
||||
try {
|
||||
const convo = this.convos.get(msg.channel.id);
|
||||
const { body } = await request
|
||||
|
||||
Reference in New Issue
Block a user