Force known nobody names

This commit is contained in:
Dragon Fire
2020-04-18 12:43:26 -04:00
parent cfe996b52d
commit c087e3b40c
3 changed files with 16 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
{
"ansem": "Xemnas",
"braig": "Xigbar",
"dilan": "Xaldin",
"even": "Vexen",
"aeleus": "Lexaeus",
"ienzo": "Zexion",
"isa": "Saïx",
"lea": "Axel",
"lauriam": "Marluxia",
"elrena": "Larxene",
"sora": "Roxas"
}
+2
View File
@@ -1,5 +1,6 @@
const Command = require('../../structures/Command');
const { shuffle, firstUpperCase } = require('../../util/Util');
const forced = require('../../assets/json/nobody-name');
module.exports = class NobodyNameCommand extends Command {
constructor(client) {
@@ -30,6 +31,7 @@ module.exports = class NobodyNameCommand extends Command {
}
run(msg, { text }) {
if (forced[text.toLowerCase()]) return msg.say(forced[text.toLowerCase()]);
const letters = text.split('');
letters.push('x');
const shuffled = shuffle(letters);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "113.0.6",
"version": "113.0.7",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {