Fix Portal

This commit is contained in:
Daniel Odendahl Jr
2017-07-30 02:35:50 +00:00
parent 48e1775215
commit a3d49130b3
2 changed files with 2 additions and 2 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);
const channels = this.client.channels.filter(c => c.guild.id !== msg.guild.id && c.type === 'text');
const channel = parseTopic(channels, 'portal', this.client.user).random();
if (!channel) return msg.say('Aww... No channel has an open portal...');
try {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "28.1.0",
"version": "28.1.1",
"description": "Your personal server companion.",
"main": "Shard.js",
"scripts": {