Allow hiding channel name from portal-send

This commit is contained in:
Dragon Fire
2020-07-07 16:48:20 -04:00
parent 390919510c
commit 1d2ae54f2b
4 changed files with 6 additions and 1 deletions
+1
View File
@@ -248,6 +248,7 @@ in the appropriate channel's topic to use it.
* `<xiao:phone:no-voicemail>` Prevents this channel from recieving voicemails for missed calls.
* `<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.
## Commands
+3
View File
@@ -51,6 +51,9 @@ module.exports = class PortalSendCommand extends Command {
**${this.portalEmoji} ${msg.author.tag} (${displayName}):** ${message}
${attachments || ''}
`);
if (channel.topic.includes('<xiao:portal:hide-name>')) {
return msg.say('Message sent to a server too terrified to show their name.');
}
return msg.say(`Message sent to **${channel.name}** in **${channel.guild.name}**!`);
} catch {
return msg.reply('Failed to send the message. Try again later!');
+1
View File
@@ -23,6 +23,7 @@ module.exports = class OptionsCommand extends Command {
\`<xiao:phone:no-voicemail>\` Prevents this channel from recieving voicemails for missed calls.
\`<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.12.2",
"version": "119.12.3",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {