diff --git a/commands/test.js b/commands/test.js new file mode 100644 index 0000000..0e2d1bd --- /dev/null +++ b/commands/test.js @@ -0,0 +1,34 @@ +const { getMessage } = require('../util/lang.js') +module.exports = { + execute: (c) => { + const reply=function(name, item){ + return { + translate: '%s: %s', + color: c.colors.primary, + with: [ + { + text: getMessage(c.lang, `command.test.${name}`), + color: c.colors.secondary + }, + { + text: item, + color: c.colors.primary + } + ] + } + } + c.reply(reply("uuid",c.uuid)) + c.reply(reply("username",c.username)) + c.reply(reply("nickname",c.nickname)) + c.reply(reply("command",c.command)) + c.reply(reply("prefix",c.prefix)) + c.reply(reply("index",c.index.toString())) + c.reply(reply("args",c.args.join(", "))) + c.reply(reply("verify",c.verify.toString())) + c.reply(reply("host",c.host)) + c.reply(reply("port",c.port.toString())) + c.reply(reply("lang",c.lang)) + c.reply(reply("colorPrimary",c.colors.primary)) + c.reply(reply("colorSecondary",c.colors.secondary)) + } +} diff --git a/lang/en-US.json b/lang/en-US.json index b35b47e..f4c8937 100644 --- a/lang/en-US.json +++ b/lang/en-US.json @@ -69,6 +69,19 @@ "command.settings.error.invalidKey": "Invalid key", "command.settings.error.invalidLanguage": "Invalid language", "command.settings.error.mustProvideValue": "You must provide a value", + "command.test.uuid": "UUID", + "command.test.username": "Username", + "command.test.nickname": "Nickname", + "command.test.command": "Command", + "command.test.prefix": "Prefix", + "command.test.index": "Bot ID", + "command.test.args": "Arguments", + "command.test.verify": "Permission level", + "command.test.host": "Server host", + "command.test.port": "Server port", + "command.test.lang": "Language", + "command.test.colorPrimary": "Primary color", + "command.test.colorSecondary": "Secondary color", "command.about.serverInfo.os.android": "Android %s", "command.about.serverInfo.os.android.noVersion": "Android", "command.about.serverInfo.os.freebsd": "FreeBSD %s",