This commit is contained in:
Daniel Odendahl Jr
2017-06-25 16:14:17 +00:00
parent 137dcd46b5
commit db7f7ab426
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ const client = new CommandoClient({
'FRIEND_ADD',
'FRIEND_REMOVE'
],
messageCacheLifetime: 30,
messageCacheLifetime: 60,
messageSweepInterval: 60
});
const { carbon, dBots } = require('./structures/Util');
+1 -3
View File
@@ -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();