Vocaloid Upgrade, Steam Change, Fix Portal

This commit is contained in:
Daniel Odendahl Jr
2017-07-30 21:50:20 +00:00
parent a3d49130b3
commit ad17cef133
8 changed files with 58 additions and 64 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ module.exports = class PortalSendCommand extends Command {
async run(msg, args) {
const { message } = args;
const channels = this.client.channels.filter(c => c.guild.id !== msg.guild.id && c.type === 'text');
const channels = this.client.channels.filter(c => c.type === 'text' && c.guild.id !== msg.guild.id);
const channel = parseTopic(channels, 'portal', this.client.user).random();
if (!channel) return msg.say('Aww... No channel has an open portal...');
try {