This repository has been archived by the owner on Aug 28, 2020. It is now read-only.
/
en-US.js
162 lines (158 loc) · 11.9 KB
/
en-US.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
const { Language, util } = require('klasa');
module.exports = class extends Language {
constructor(...args) {
super(...args);
this.language = {
DEFAULT: (key) => `${key} has not been localized for en-US yet.`,
DEFAULT_LANGUAGE: 'Default Language',
SETTING_GATEWAY_EXPECTS_GUILD: 'The parameter <Guild> expects either a Guild or a Guild Object.',
SETTING_GATEWAY_VALUE_FOR_KEY_NOEXT: (data, key) => `The value ${data} for the key ${key} does not exist.`,
SETTING_GATEWAY_VALUE_FOR_KEY_ALREXT: (data, key) => `The value ${data} for the key ${key} already exists.`,
SETTING_GATEWAY_SPECIFY_VALUE: 'You must specify the value to add or filter.',
SETTING_GATEWAY_KEY_NOT_ARRAY: (key) => `The key ${key} is not an Array.`,
SETTING_GATEWAY_KEY_NOEXT: (key) => `The key ${key} does not exist in the current data schema.`,
SETTING_GATEWAY_INVALID_TYPE: 'The type parameter must be either add or remove.',
RESOLVER_INVALID_PIECE: (name, piece) => `${name} must be a valid ${piece} name.`,
RESOLVER_INVALID_MSG: (name) => `${name} must be a valid message id.`,
RESOLVER_INVALID_USER: (name) => `${name} must be a mention or valid user id.`,
RESOLVER_INVALID_MEMBER: (name) => `${name} must be a mention or valid user id.`,
RESOLVER_INVALID_CHANNEL: (name) => `${name} must be a channel tag or valid channel id.`,
RESOLVER_INVALID_EMOJI: (name) => `${name} must be a custom emoji tag or valid emoji id.`,
RESOLVER_INVALID_GUILD: (name) => `${name} must be a valid guild id.`,
RESOLVER_INVALID_ROLE: (name) => `${name} must be a role mention or role id.`,
RESOLVER_INVALID_LITERAL: (name) => `Your option did not match the only possibility: ${name}`,
RESOLVER_INVALID_BOOL: (name) => `${name} must be true or false.`,
RESOLVER_INVALID_INT: (name) => `${name} must be an integer.`,
RESOLVER_INVALID_FLOAT: (name) => `${name} must be a valid number.`,
RESOLVER_INVALID_REGEX_MATCH: (name, pattern) => `${name} must follow this regex pattern \`${pattern}\`.`,
RESOLVER_INVALID_URL: (name) => `${name} must be a valid url.`,
RESOLVER_STRING_SUFFIX: ' characters',
RESOLVER_MINMAX_EXACTLY: (name, min, suffix) => `${name} must be exactly ${min}${suffix}.`,
RESOLVER_MINMAX_BOTH: (name, min, max, suffix) => `${name} must be between ${min} and ${max}${suffix}.`,
RESOLVER_MINMAX_MIN: (name, min, suffix) => `${name} must be greater than ${min}${suffix}.`,
RESOLVER_MINMAX_MAX: (name, max, suffix) => `${name} must be less than ${max}${suffix}.`,
REACTIONHANDLER_PROMPT: 'Which page would you like to jump to?',
COMMANDMESSAGE_MISSING: 'Missing one or more required arguments after end of input.',
COMMANDMESSAGE_MISSING_REQUIRED: (name) => `${name} is a required argument.`,
COMMANDMESSAGE_MISSING_OPTIONALS: (possibles) => `Missing a required option: (${possibles})`,
COMMANDMESSAGE_NOMATCH: (possibles) => `Your option didn't match any of the possibilities: (${possibles})`,
MONITOR_COMMAND_HANDLER_REPROMPT: (tag, error, time) => `${tag} | **${error}** | You have **${time}** seconds to respond to this prompt with a valid argument. Type **"ABORT"** to abort this prompt.`, // eslint-disable-line max-len
MONITOR_COMMAND_HANDLER_REPEATING_REPROMPT: (tag, name, time) => `${tag} | **${name}** is a repeating argument | You have **${time}** seconds to respond to this prompt with additional valid arguments. Type **"CANCEL"** to cancel this prompt.`, // eslint-disable-line max-len
MONITOR_COMMAND_HANDLER_ABORTED: 'Aborted',
INHIBITOR_COOLDOWN: (remaining) => `You have just used this command. You can use this command again in ${remaining} seconds.`,
INHIBITOR_DISABLED: 'This command is currently disabled',
INHIBITOR_MISSING_BOT_PERMS: (missing) => `Insufficient permissions, missing: **${missing}**`,
INHIBITOR_NSFW: 'You may not use NSFW commands in this channel.',
INHIBITOR_PERMISSIONS: 'You do not have permission to use this command',
INHIBITOR_REQUIRED_CONFIGS: (configs) => `The guild is missing the **${configs.join(', ')}** guild setting${configs.length !== 1 ? 's' : ''} and thus the command cannot run.`,
INHIBITOR_RUNIN: (types) => `This command is only available in ${types} channels`,
INHIBITOR_RUNIN_NONE: (name) => `The ${name} command is not configured to run in any channel.`,
COMMAND_BLACKLIST_DESCRIPTION: 'Blacklists or un-blacklists users and guilds from the bot.',
COMMAND_BLACKLIST_SUCCESS: (usersAdded, usersRemoved, guildsAdded, guildsRemoved) => [
usersAdded.length ? `**UsersAdded**\n${util.codeBlock('', usersAdded.join(', '))}` : '',
usersRemoved.length ? `**UsersRemoved**\n${util.codeBlock('', usersRemoved.join(', '))}` : '',
guildsAdded.length ? `**GuildsAdded**\n${util.codeBlock('', guildsAdded.join(', '))}` : '',
guildsRemoved.length ? `**GuildsRemoved**\n${util.codeBlock('', guildsRemoved.join(', '))}` : ''
].filter(val => val !== '').join('\n'),
COMMAND_EVAL_DESCRIPTION: 'Evaluates arbitrary Javascript. Reserved for bot owner.',
COMMAND_EVAL_EXTENDEDHELP: [
'The eval command evaluates code as-in, any error thrown from it will be handled.',
'It also uses the flags feature. Write --silent, --depth=number or --async to customize the output.',
'The --silent flag will make it output nothing.',
'The --depth flag accepts a number, for example, --depth=2, to customize util.inspect\'s depth.',
'The --async flag will wrap the code into an async function where you can enjoy the use of await, however, if you want to return something, you will need the return keyword',
'The --showHidden flag will enable the showHidden option in util.inspect.',
'If the output is too large, it\'ll send the output as a file, or in the console if the bot does not have the ATTACH_FILES permission.'
].join('\n'),
COMMAND_EVAL_ERROR: (time, output, type) => `**Error**:${output}\n**Type**:${type}\n${time}`,
COMMAND_EVAL_OUTPUT: (time, output, type) => `**Output**:${output}\n**Type**:${type}\n${time}`,
COMMAND_EVAL_SENDFILE: (time, type) => `Output was too long... sent the result as a file.\n**Type**:${type}\n${time}`,
COMMAND_EVAL_SENDCONSOLE: (time, type) => `Output was too long... sent the result to console.\n**Type**:${type}\n${time}`,
COMMAND_UNLOAD: (type, name) => `✅ Unloaded ${type}: ${name}`,
COMMAND_UNLOAD_DESCRIPTION: 'Unloads the klasa piece.',
COMMAND_TRANSFER_ERROR: '❌ That file has been transfered already or never existed.',
COMMAND_TRANSFER_SUCCESS: (type, name) => `✅ Successfully transferred ${type}: ${name}`,
COMMAND_TRANSFER_FAILED: (type, name) => `Transfer of ${type}: ${name} to Client has failed. Please check your Console.`,
COMMAND_TRANSFER_DESCRIPTION: 'Transfers a core piece to its respective folder',
COMMAND_RELOAD: (type, name) => `✅ Reloaded ${type}: ${name}`,
COMMAND_RELOAD_ALL: (type) => `✅ Reloaded all ${type}.`,
COMMAND_RELOAD_DESCRIPTION: 'Reloads a klasa piece, or all pieces of a klasa store.',
COMMAND_REBOOT: 'Rebooting...',
COMMAND_REBOOT_DESCRIPTION: 'Reboots the bot.',
COMMAND_PING: 'Ping?',
COMMAND_PING_DESCRIPTION: 'Runs a connection test to Discord.',
COMMAND_PINGPONG: (diff, ping) => `Pong! (Roundtrip took: ${diff}ms. Heartbeat: ${ping}ms.)`,
COMMAND_INVITE_SELFBOT: 'Why would you need an invite link for a selfbot...',
COMMAND_INVITE: (client) => [
`To add ${client.user.username} to your discord guild:`,
client.invite,
util.codeBlock('', [
'The above link is generated requesting the minimum permissions required to use every command currently.',
'I know not all permissions are right for every server, so don\'t be afraid to uncheck any of the boxes.',
'If you try to use a command that requires more permissions than the bot is granted, it will let you know.'
].join(' ')),
'Please file an issue at <https://github.com/dirigeants/klasa> if you find any bugs.'
],
COMMAND_INVITE_DESCRIPTION: 'Displays the join server link of the bot.',
COMMAND_INFO: [
"Klasa is a 'plug-and-play' framework built on top of the Discord.js library.",
'Most of the code is modularized, which allows developers to edit Klasa to suit their needs.',
'',
'Some features of Klasa include:',
'• Fast Loading times with ES7 Support (Async/Await)',
'• Per-server configuration, that can be extended with your own code',
'• Customizable Command system with automated usage parsing and easy to use reloading and downloading modules',
'• "Monitors" which can watch messages and act on them, like a normal message event (Swear Filters, Spam Protection, etc)',
'• "Inhibitors" which can prevent commands from running based on a set of parameters (Permissions, Blacklists, etc)',
'• "Providers" which allow you to connect with an outside database of your choosing.',
'• "Finalizers" which run on messages after a successful command.',
'• "Extendables", code that acts passively. They add properties or methods to existing Discord.js classes.',
'• "Languages", which allow you to localize your bot.',
'',
'We hope to be a 100% customizable framework that can cater to all audiences. We do frequent updates and bugfixes when available.',
"If you're interested in us, check us out at https://klasa.js.org"
],
COMMAND_INFO_DESCRIPTION: 'Provides some information about this bot.',
COMMAND_HELP_DESCRIPTION: 'Display help for a command.',
COMMAND_HELP_NO_EXTENDED: 'No extended help available.',
COMMAND_HELP_DM: '📥 | The list of commands you have access to has been sent to your DMs.',
COMMAND_HELP_NODM: '❌ | You have DMs disabled, I couldn\'t send you the commands in DMs.',
COMMAND_HELP_USAGE: (usage) => `usage :: ${usage}`,
COMMAND_HELP_EXTENDED: 'Extended Help ::',
COMMAND_ENABLE: (type, name) => `+ Successfully enabled ${type}: ${name}`,
COMMAND_ENABLE_DESCRIPTION: 'Re-enables or temporarily enables a command/inhibitor/monitor/finalizer. Default state restored on reboot.',
COMMAND_DISABLE: (type, name) => `+ Successfully disabled ${type}: ${name}`,
COMMAND_DISABLE_DESCRIPTION: 'Re-disables or temporarily disables a command/inhibitor/monitor/finalizer/event. Default state restored on reboot.',
COMMAND_DISABLE_WARN: 'You probably don\'t want to disable that, since you wouldn\'t be able to run any command to enable it again',
COMMAND_CONF_NOKEY: 'You must provide a key',
COMMAND_CONF_NOVALUE: 'You must provide a value',
COMMAND_CONF_GUARDED: (name) => `${util.toTitleCase(name)} may not be disabled.`,
COMMAND_CONF_UPDATED: (key, response) => `Successfully updated the key **${key}**: \`${response}\``,
COMMAND_CONF_KEY_NOT_ARRAY: 'This key is not array type. Use the action \'reset\' instead.',
COMMAND_CONF_GET_NOEXT: (key) => `The key **${key}** does not seem to exist.`,
COMMAND_CONF_GET: (key, value) => `The value for the key **${key}** is: \`${value}\``,
COMMAND_CONF_RESET: (key, response) => `The key **${key}** has been reset to: \`${response}\``,
COMMAND_CONF_SERVER_DESCRIPTION: 'Define per-server configuration.',
COMMAND_CONF_SERVER: (key, list) => `**Server Configuration${key}**\n${list}`,
COMMAND_CONF_USER_DESCRIPTION: 'Define per-user configuration.',
COMMAND_CONF_USER: (key, list) => `**User Configuration${key}**\n${list}`,
COMMAND_STATS: (memUsage, uptime, users, servers, channels, klasaVersion, discordVersion, processVersion, msg) => [
'= STATISTICS =',
'',
`• Mem Usage :: ${memUsage} MB`,
`• Uptime :: ${uptime}`,
`• Users :: ${users}`,
`• Servers :: ${servers}`,
`• Channels :: ${channels}`,
`• Klasa :: v${klasaVersion}`,
`• Discord.js :: v${discordVersion}`,
`• Node.js :: ${processVersion}`,
this.client.options.shardCount ? `• Shard :: ${((msg.guild ? msg.guild.shardID : msg.channel.shardID) || this.client.options.shardId) + 1} / ${this.client.options.shardCount}` : ''
],
COMMAND_STATS_DESCRIPTION: 'Provides some details about the bot and stats.'
};
}
async init() {
await super.init();
}
};