Allow preventing a channel from being picked by phone randomizer

This commit is contained in:
Dragon Fire
2020-09-01 10:14:43 -04:00
parent 29d478c3b5
commit 378f71c094
4 changed files with 4 additions and 1 deletions
+1
View File
@@ -247,6 +247,7 @@ in the appropriate channel's topic to use it.
* `<xiao:disable-leave>` Disables leave messages (Place in the channel you recieve welcome messages in).
* `<xiao:phone>` Allows a channel to recieve phone calls from the `phone` command.
* `<xiao:phone:no-voicemail>` Prevents this channel from recieving voicemails for missed calls.
* `<xiao:phone:no-random>` Makes the channel only able to be called directly in the `phone` command, rather than be picked at random.
* `<xiao:phone-book:hide>` Hides a channel from the `phone-book` command.
* `<xiao:portal>` Allows a channel to recieve portal messages from the `portal-send` command.
* `<xiao:portal:hide-name>` Hides the channel and server name from the `portal-send` command when your channel is picked.
+1
View File
@@ -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('<xiao:phone>')
&& !channel.topic.includes('<xiao:phone:no-random>')
&& !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...');
+1
View File
@@ -21,6 +21,7 @@ module.exports = class OptionsCommand extends Command {
\`<xiao:disable-leave>\` Disables leave messages (System Channel).
\`<xiao:phone>\` Allows this channel to recieve phone calls.
\`<xiao:phone:no-voicemail>\` Prevents this channel from recieving voicemails for missed calls.
\`<xiao:phone:no-random>\` Makes the channel only able to be called directly, rather than picked randomly.
\`<xiao:phone-book:hide>\` Hides this channel from \`phone-book\`.
\`<xiao:portal>\` Marks the channel as a portal channel for \`portal-send\`.
\`<xiao:portal:hide-name>\` Hides the channel's name when the channel is chosen to recieve a portal message.
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "119.19.8",
"version": "119.20.0",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {