Skip to content
Permalink
Browse files

feat: support command

  • Loading branch information...
cfanoulis committed Nov 7, 2019
1 parent adc6d84 commit 4bf59bc14607524f849e6ea2ebd46c78aed17a8d
Showing with 36 additions and 0 deletions.
  1. +28 −0 src/commands/System/support.ts
  2. +4 −0 src/languages/en-US.ts
  3. +4 −0 src/lib/types/Languages.d.ts
@@ -0,0 +1,28 @@
import { SkyraCommand } from '../../lib/structures/SkyraCommand';
import { CommandStore, KlasaMessage } from 'klasa';
import { MessageEmbed } from 'discord.js';
import { BrandingColors } from '../../lib/util/constants';

export default class extends SkyraCommand {

public constructor(store: CommandStore, file: string[], directory: string) {
super(store, file, directory, {
aliases: ['supportserver', 'server'],
description: language => language.tget('COMMAND_SUPPORT_DESCRIPTION'),
extendedHelp: language => language.tget('COMMAND_SUPPORT_EXTENDED_HELP'),
guarded: true,
permissionLevel: 0
});

}

public run(message: KlasaMessage) {
const embed = new MessageEmbed()
// TODO: LANGUAGE SUPPORT YOU IDIOT
.setTitle(message.language.tget('COMMAND_SUPPORT_EMBED_TITLE', message.author.username))
.setDescription(message.language.tget('COMMAND_SUPPORT_EMBED_DESCRIPTION'))
.setColor(BrandingColors.Primary);
return message.send(embed);
}

}
@@ -1970,6 +1970,10 @@ export default class extends Language {
COMMAND_HELP_TITLE: (name, description) => `📃 | ***Help Message*** | __**${name}**__\n${description}\n`,
COMMAND_HELP_USAGE: usage => `📝 | ***Command Usage***\n\`${usage}\`\n`,
COMMAND_HELP_EXTENDED: extendedHelp => `🔍 | ***Extended Help***\n${extendedHelp}`,
COMMAND_SUPPORT_DESCRIPTION: `Show support instructions`,
COMMAND_SUPPORT_EXTENDED_HELP: `Literally gives you a link to our support server. What did you really expect this to do :thinking:`,
COMMAND_SUPPORT_EMBED_TITLE: username => `Looking for help, ${username}?`,
COMMAND_SUPPORT_EMBED_DESCRIPTION: `Then you should probably join [Skyra\'s lounge](https://discord.gg/92mEkYz)! There, you can receive support by the developers and other members of the community!`,

/**
* ##############
@@ -169,6 +169,10 @@ export interface LanguageKeys {
COMMAND_SKIP_VOTES_VOTED: string;
COMMAND_SKIP_VOTES_TOTAL: (amount: number, needed: number) => string;
COMMAND_SKIP_SUCCESS: (title: string) => string;
COMMAND_SUPPORT_DESCRIPTION: string;
COMMAND_SUPPORT_EXTENDED_HELP: string;
COMMAND_SUPPORT_EMBED_TITLE: (username: string) => string;
COMMAND_SUPPORT_EMBED_DESCRIPTION: string;
COMMAND_TIME_DESCRIPTION: string;
COMMAND_TIME_QUEUE_EMPTY: string;
COMMAND_TIME_STREAM: string;

0 comments on commit 4bf59bc

Please sign in to comment.
You can’t perform that action at this time.