mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 13:53:12 +02:00
I can grammar me swear
This commit is contained in:
@@ -24,7 +24,7 @@ module.exports = class AddPortalChannelCommand extends Command {
|
||||
run(msg, { channel }) {
|
||||
if (channel.type !== 'text') return msg.reply('Only text channels can have a portal!');
|
||||
const channels = this.client.provider.get('global', 'portals', []);
|
||||
if (channels.includes(channel.id)) return msg.reply(`${channel} is already has an open portal!`);
|
||||
if (channels.includes(channel.id)) return msg.reply(`${channel} already has an open portal!`);
|
||||
channels.push(channel.id);
|
||||
this.client.provider.set('global', 'portals', channels);
|
||||
return msg.say(`A portal opened in ${channel}!`);
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "65.0.0",
|
||||
"version": "65.0.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user