mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 06:42:51 +02:00
Fix Portal
This commit is contained in:
@@ -26,7 +26,7 @@ module.exports = class PortalSendCommand extends Command {
|
|||||||
|
|
||||||
async run(msg, args) {
|
async run(msg, args) {
|
||||||
const { message } = 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();
|
const channel = parseTopic(channels, 'portal', this.client.user).random();
|
||||||
if (!channel) return msg.say('Aww... No channel has an open portal...');
|
if (!channel) return msg.say('Aww... No channel has an open portal...');
|
||||||
try {
|
try {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiaobot",
|
"name": "xiaobot",
|
||||||
"version": "28.1.0",
|
"version": "28.1.1",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Shard.js",
|
"main": "Shard.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user