mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
Force known nobody names
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user