mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 21:44:48 +02:00
<portal> -> <xiao:portal>
This commit is contained in:
@@ -9,7 +9,14 @@ module.exports = class PhoneCommand extends Command {
|
||||
group: 'other',
|
||||
memberName: 'phone',
|
||||
description: 'Starts a phone call with a random server.',
|
||||
guildOnly: true
|
||||
guildOnly: true,
|
||||
credit: [
|
||||
{
|
||||
name: 'Tatsumaki',
|
||||
url: 'https://tatsumaki.xyz/',
|
||||
reason: 'Concept'
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ module.exports = class PortalSendCommand extends Command {
|
||||
async run(msg, { message }) {
|
||||
if (/discord(\.gg|app\.com\/invite|\.me)\//gi.test(message)) return msg.reply('Please do not send invites.');
|
||||
let channels = this.client.channels.cache.filter(
|
||||
channel => channel.type === 'text' && channel.topic && channel.topic.includes('<portal>')
|
||||
channel => channel.type === 'text' && channel.topic && channel.topic.includes('<xiao:portal>')
|
||||
);
|
||||
if (msg.channel.type === 'text') {
|
||||
channels = channels.filter(channel => !msg.guild.channels.cache.has(channel.id));
|
||||
|
||||
@@ -20,7 +20,7 @@ module.exports = class OptionsCommand extends Command {
|
||||
|
||||
\`<xiao:disable-leave>\` Disables leave messages (System Channel).
|
||||
\`<xiao:phone>\` Allows this channel to recieve phone calls.
|
||||
\`<portal>\` Marks the channel as a portal channel for \`portal-send\`.
|
||||
\`<xiao:portal>\` Marks the channel as a portal channel for \`portal-send\`.
|
||||
`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user