diff --git a/README.md b/README.md index 02879f45..e1b3efb1 100644 --- a/README.md +++ b/README.md @@ -247,6 +247,7 @@ in the appropriate channel's topic to use it. * `` Disables leave messages (Place in the channel you recieve welcome messages in). * `` Allows a channel to recieve phone calls from the `phone` command. * `` Prevents this channel from recieving voicemails for missed calls. +* `` Makes the channel only able to be called directly in the `phone` command, rather than be picked at random. * `` Hides a channel from the `phone-book` command. * `` Allows a channel to recieve portal messages from the `portal-send` command. * `` Hides the channel and server name from the `portal-send` command when your channel is picked. diff --git a/commands/phone/phone.js b/commands/phone/phone.js index bd100625..17825733 100644 --- a/commands/phone/phone.js +++ b/commands/phone/phone.js @@ -47,6 +47,7 @@ module.exports = class PhoneCommand extends Command { const channels = this.client.channels.cache.filter(channel => channel.guild && channel.topic && channel.topic.includes('') + && !channel.topic.includes('') && !msg.guild.channels.cache.has(channel.id) && (channelID ? true : !this.client.inPhoneCall(channel))); if (!channels.size) return msg.reply('No channels currently allow phone calls...'); diff --git a/commands/util-public/options.js b/commands/util-public/options.js index b330c6c4..d13165ac 100644 --- a/commands/util-public/options.js +++ b/commands/util-public/options.js @@ -21,6 +21,7 @@ module.exports = class OptionsCommand extends Command { \`\` Disables leave messages (System Channel). \`\` Allows this channel to recieve phone calls. \`\` Prevents this channel from recieving voicemails for missed calls. + \`\` Makes the channel only able to be called directly, rather than picked randomly. \`\` Hides this channel from \`phone-book\`. \`\` Marks the channel as a portal channel for \`portal-send\`. \`\` Hides the channel's name when the channel is chosen to recieve a portal message. diff --git a/package.json b/package.json index 6d81325c..9a883923 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "119.19.8", + "version": "119.20.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {