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