mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Allow hiding channel name from portal-send
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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!');
|
||||
|
||||
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "119.12.2",
|
||||
"version": "119.12.3",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user