mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 22:32:52 +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:no-voicemail>` Prevents this channel from recieving voicemails for missed calls.
|
||||||
* `<xiao:phone-book:hide>` Hides a channel from the `phone-book` command.
|
* `<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>` 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
|
## Commands
|
||||||
|
|
||||||
|
|||||||
@@ -51,6 +51,9 @@ module.exports = class PortalSendCommand extends Command {
|
|||||||
**${this.portalEmoji} ${msg.author.tag} (${displayName}):** ${message}
|
**${this.portalEmoji} ${msg.author.tag} (${displayName}):** ${message}
|
||||||
${attachments || ''}
|
${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}**!`);
|
return msg.say(`Message sent to **${channel.name}** in **${channel.guild.name}**!`);
|
||||||
} catch {
|
} catch {
|
||||||
return msg.reply('Failed to send the message. Try again later!');
|
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:no-voicemail>\` Prevents this channel from recieving voicemails for missed calls.
|
||||||
\`<xiao:phone-book:hide>\` Hides this channel from \`phone-book\`.
|
\`<xiao:phone-book:hide>\` Hides this channel from \`phone-book\`.
|
||||||
\`<xiao:portal>\` Marks the channel as a portal channel for \`portal-send\`.
|
\`<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",
|
"name": "xiao",
|
||||||
"version": "119.12.2",
|
"version": "119.12.3",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user