mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
a
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@ const client = new CommandoClient({
|
|||||||
'FRIEND_ADD',
|
'FRIEND_ADD',
|
||||||
'FRIEND_REMOVE'
|
'FRIEND_REMOVE'
|
||||||
],
|
],
|
||||||
messageCacheLifetime: 30,
|
messageCacheLifetime: 60,
|
||||||
messageSweepInterval: 60
|
messageSweepInterval: 60
|
||||||
});
|
});
|
||||||
const { carbon, dBots } = require('./structures/Util');
|
const { carbon, dBots } = require('./structures/Util');
|
||||||
|
|||||||
@@ -26,9 +26,7 @@ module.exports = class PortalSendCommand extends Command {
|
|||||||
async run(msg, args) {
|
async run(msg, args) {
|
||||||
const { message } = args;
|
const { message } = args;
|
||||||
const channel = this.client.channels.filter((c) => {
|
const channel = this.client.channels.filter((c) => {
|
||||||
if (c.type !== 'text') return false;
|
if (c.type !== 'text' || !c.topic || msg.guild.id === c.guild.id) return false;
|
||||||
else if (!c.topic || !c.permissionsFor(this.client.user).has('SEND_MESSAGES')) return false;
|
|
||||||
else if (msg.guild.id === c.guild.id) return false;
|
|
||||||
else if (c.topic.includes('<portal>')) return true;
|
else if (c.topic.includes('<portal>')) return true;
|
||||||
else return false;
|
else return false;
|
||||||
}).random();
|
}).random();
|
||||||
|
|||||||
Reference in New Issue
Block a user