mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix Portal
This commit is contained in:
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiaobot",
|
||||
"version": "28.1.0",
|
||||
"version": "28.1.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Shard.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user