mirror of
https://github.com/DarthKilroy/Spot.git
synced 2025-12-23 12:16:48 +00:00
Added definitions
This commit is contained in:
parent
53fb1a7169
commit
774c66eb83
7 changed files with 327 additions and 0 deletions
40
model/command/website.js
Normal file
40
model/command/website.js
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
const { MessageEmbed } = require('discord.js');
|
||||
const CommandCategory = require('../command-category');
|
||||
const CommandPermission = require('../command-permission');
|
||||
|
||||
class Website
|
||||
{
|
||||
static instance = null;
|
||||
|
||||
constructor() {
|
||||
if (Website.instance !== null) {
|
||||
return Website.instance;
|
||||
}
|
||||
|
||||
this.aliases = [];
|
||||
this.category = CommandCategory.RESOURCE;
|
||||
this.isAllowedForContext = CommandPermission.yes;
|
||||
this.description = 'Talks about the possibility of having a web portal for Simply Plural.';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Message} message
|
||||
* @param {Array} args
|
||||
*/
|
||||
async process(message, args) {
|
||||
const embed = new MessageEmbed();
|
||||
|
||||
embed.setColor(APP_MAIN_COLOUR);
|
||||
embed.setAuthor('Website', bot.user.displayAvatarURL({ dynamic: true }));
|
||||
embed.setDescription(
|
||||
'A web portal for Simply Plural is unlikely to be made at the moment. The framework that Simply Plural ' +
|
||||
'has been created with has the capability of web development, but it is currently experimental, which ' +
|
||||
'would make it buggy and unstable to use. This decision may change later in the year when the framework ' +
|
||||
'becomes more stable and once the app is more complete.'
|
||||
);
|
||||
|
||||
return message.channel.send(embed);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = new Website();
|
||||
Loading…
Add table
Add a link
Reference in a new issue