mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 14:18:36 +02:00
<portal> -> <xiao:portal>
This commit is contained in:
@@ -942,6 +942,7 @@ here.
|
|||||||
* beautiful (Image, Concept)
|
* beautiful (Image, Concept)
|
||||||
* psycho-pass (Concept)
|
* psycho-pass (Concept)
|
||||||
* fishy (Concept)
|
* fishy (Concept)
|
||||||
|
* phone (Concept)
|
||||||
- [Tenor](https://tenor.com/)
|
- [Tenor](https://tenor.com/)
|
||||||
* tenor ([API](https://tenor.com/gifapi/documentation))
|
* tenor ([API](https://tenor.com/gifapi/documentation))
|
||||||
- [The Internet Chuck Norris Database](http://www.icndb.com/)
|
- [The Internet Chuck Norris Database](http://www.icndb.com/)
|
||||||
|
|||||||
@@ -9,7 +9,14 @@ module.exports = class PhoneCommand extends Command {
|
|||||||
group: 'other',
|
group: 'other',
|
||||||
memberName: 'phone',
|
memberName: 'phone',
|
||||||
description: 'Starts a phone call with a random server.',
|
description: 'Starts a phone call with a random server.',
|
||||||
guildOnly: true
|
guildOnly: true,
|
||||||
|
credit: [
|
||||||
|
{
|
||||||
|
name: 'Tatsumaki',
|
||||||
|
url: 'https://tatsumaki.xyz/',
|
||||||
|
reason: 'Concept'
|
||||||
|
}
|
||||||
|
]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ module.exports = class PortalSendCommand extends Command {
|
|||||||
async run(msg, { message }) {
|
async run(msg, { message }) {
|
||||||
if (/discord(\.gg|app\.com\/invite|\.me)\//gi.test(message)) return msg.reply('Please do not send invites.');
|
if (/discord(\.gg|app\.com\/invite|\.me)\//gi.test(message)) return msg.reply('Please do not send invites.');
|
||||||
let channels = this.client.channels.cache.filter(
|
let channels = this.client.channels.cache.filter(
|
||||||
channel => channel.type === 'text' && channel.topic && channel.topic.includes('<portal>')
|
channel => channel.type === 'text' && channel.topic && channel.topic.includes('<xiao:portal>')
|
||||||
);
|
);
|
||||||
if (msg.channel.type === 'text') {
|
if (msg.channel.type === 'text') {
|
||||||
channels = channels.filter(channel => !msg.guild.channels.cache.has(channel.id));
|
channels = channels.filter(channel => !msg.guild.channels.cache.has(channel.id));
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ module.exports = class OptionsCommand extends Command {
|
|||||||
|
|
||||||
\`<xiao:disable-leave>\` Disables leave messages (System Channel).
|
\`<xiao:disable-leave>\` Disables leave messages (System Channel).
|
||||||
\`<xiao:phone>\` Allows this channel to recieve phone calls.
|
\`<xiao:phone>\` Allows this channel to recieve phone calls.
|
||||||
\`<portal>\` Marks the channel as a portal channel for \`portal-send\`.
|
\`<xiao:portal>\` Marks the channel as a portal channel for \`portal-send\`.
|
||||||
`);
|
`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "110.10.1",
|
"version": "111.0.0",
|
||||||
"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