mirror of
https://github.com/DarthKilroy/Spot.git
synced 2026-02-09 20:37:52 +00:00
Initial commit
This commit is contained in:
commit
8ae81f1cc6
24 changed files with 1425 additions and 0 deletions
42
model/command/custom-front.js
Normal file
42
model/command/custom-front.js
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
const { MessageEmbed } = require('discord.js');
|
||||
const CommandCategory = require('../command-category');
|
||||
const CommandPermission = require('../command-permission');
|
||||
|
||||
class CustomFront
|
||||
{
|
||||
static instance = null;
|
||||
|
||||
constructor() {
|
||||
if (CustomFront.instance !== null) {
|
||||
return CustomFront.instance;
|
||||
}
|
||||
|
||||
this.aliases = ['custom-fronts', 'customfronts', 'customfront', 'cf'];
|
||||
this.category = CommandCategory.FUN;
|
||||
this.isAllowedForContext = CommandPermission.yes;
|
||||
this.description = 'Explains what "custom front" is.';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Message} message
|
||||
* @param {Array} args
|
||||
*/
|
||||
async process(message, args) {
|
||||
const embed = new MessageEmbed();
|
||||
|
||||
embed.setColor(APP_MAIN_COLOUR);
|
||||
embed.setAuthor('Custom fronts', bot.user.displayAvatarURL({ dynamic: true }));
|
||||
embed.setDescription(
|
||||
'Custom fronts is a kind of status for fronts, like "blurred", "unknown member", "dissociated", etc... \n' +
|
||||
'\n' +
|
||||
'You don\'t want those to show up as real members in your system list but you still want to be able to ' +
|
||||
'set front as one of them — that\'s where custom fronts kick in.\n' +
|
||||
'\n' +
|
||||
'They\'re highly customizable (as per popular request) so you can name them anything you want.'
|
||||
);
|
||||
|
||||
return message.channel.send(embed);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = new CustomFront();
|
||||
Loading…
Add table
Add a link
Reference in a new issue