Spot/model/command/front-history-importing.js
2021-05-04 21:47:26 -04:00

53 lines
1.7 KiB
JavaScript

const { MessageEmbed } = require('discord.js');
const CommandCategory = require('../command-category');
const CommandPermission = require('../command-permission');
class FrontHistoryImporting
{
static instance = null;
constructor() {
if (FrontHistoryImporting.instance !== null) {
return FrontHistoryImporting.instance;
}
this.aliases = [
'fronthistoryimporting',
'fronthistory-importing',
'front-historyimporting',
'fronthistoryimport',
'fronthistory-import',
'front-historyimport',
'front-history',
'fronthistory',
'front-importing',
'frontimporting',
'front-import',
'frontimport',
'fhi',
];
this.category = CommandCategory.RESOURCE;
this.isAllowedForContext = CommandPermission.yes;
this.description = 'Talks about importing the front history from PluralKit.';
}
/**
* @param {Message} message
* @param {Array} args
*/
async process(message, args) {
const embed = new MessageEmbed();
embed.setColor(APP_MAIN_COLOUR);
embed.setAuthor('Front history importing', bot.user.displayAvatarURL({ dynamic: true }));
embed.setDescription(
'Importing your front history from PluralKit is planned in the future, but is currently impossible ' +
'until APIv2 for PluralKit is finished. This feature also takes a lower priority than features unique ' +
'to Simply Plural.'
);
return message.channel.send(embed);
}
}
module.exports = new FrontHistoryImporting();