mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Force known nobody names
This commit is contained in:
@@ -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"
|
||||
}
|
||||
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "113.0.6",
|
||||
"version": "113.0.7",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user