mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 01:57:54 +02:00
Steam Command
This commit is contained in:
@@ -26,7 +26,8 @@ module.exports = class PortalSendCommand extends Command {
|
||||
|
||||
async run(msg, args) {
|
||||
const { message } = args;
|
||||
const channel = parseTopic(this.client.channels, 'portal', this.client.user).random();
|
||||
const channels = this.client.channels.filter(c => 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 {
|
||||
await channel.send(`**${msg.author.tag} (${msg.guild.name}):** ${message}`);
|
||||
|
||||
Reference in New Issue
Block a user