mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Name Rater Command
This commit is contained in:
@@ -33,6 +33,7 @@ DAMAGE_EMOJI_ID=
|
||||
LOADING_EMOJI_ID=
|
||||
MEGA_EVOLVE_EMOJI_ID=
|
||||
MEGA_EVOLVE_EMOJI_NAME=
|
||||
NAME_RATER_EMOJI_ID=
|
||||
|
||||
# API Keys, IDs, and Secrets
|
||||
ALPHA_VANTAGE_KEY=
|
||||
|
||||
@@ -403,6 +403,7 @@ Total: 573
|
||||
* **friendship:** Determines how good friends two users are.
|
||||
* **guess-looks:** Guesses what a user looks like.
|
||||
* **iq:** Determines a user's IQ.
|
||||
* **name-rater:** 'Determines a name's quality.
|
||||
* **psycho-pass:** Determines your Crime Coefficient.
|
||||
* **ship:** Ships two users together.
|
||||
* **smash-or-pass:** Determines if a user is worthy of a smash or a pass.
|
||||
@@ -1568,6 +1569,7 @@ here.
|
||||
* 3000-years (Image, Original Game)
|
||||
* dexter (Image, Original Anime)
|
||||
* hat (Ash Hat Original Anime)
|
||||
* name-rater (Sprite)
|
||||
* pokedex (Images, Original Game)
|
||||
* pokedex-location (Images, Original Game)
|
||||
* pokedex-moveset (Images, Original Game)
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
[
|
||||
"{{name}}, is it? That is a truly impeccable name!",
|
||||
"{{name}}, is it? That is a decent name!",
|
||||
"{{name}}, is it? That's not the best name out there.",
|
||||
"{{name}}, is it? What an unfortunate name...",
|
||||
"Hm... {{name}}? What a great name! It's perfect.",
|
||||
"Hm... {{name}}... That's a fairly decent name.",
|
||||
"Hm... {{name}}... It could be better.",
|
||||
"Hm... {{name}}... I pity you...",
|
||||
"Hmmm... {{name}} it is! This is a magnificent name! It is impeccably beyond reproach!",
|
||||
"Hmmm... {{name}}, is it? That is quite a fine name.",
|
||||
"Hmmm... {{name}}, is it? It could be worse.",
|
||||
"Hmmm... {{name}}, is it? I feel very sorry for you.",
|
||||
"Hmmm. {{name}}, is it? That sounds good! It's a very \"you\" sort of name.",
|
||||
"Hmmm. {{name}}, is it? That sounds good. It seems very like you.",
|
||||
"Hmmm. {{name}}, is it? That sounds okay. It's very... \"You\"?",
|
||||
"Hmmm. {{name}}, is it? That sounds... Very... Unique?",
|
||||
"{{name}}, is it? Yeah, that name sucks. Sorry, no sugar-coating this one."
|
||||
]
|
||||
@@ -0,0 +1,39 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const { MersenneTwister19937, integer } = require('random-js');
|
||||
const texts = require('../../assets/json/name-rater');
|
||||
const { NAME_RATER_EMOJI_ID } = process.env;
|
||||
|
||||
module.exports = class NameRaterCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'name-rater',
|
||||
aliases: ['name-rate', 'rate-name'],
|
||||
group: 'random-seed',
|
||||
memberName: 'name-rater',
|
||||
description: 'Determines a name\'s quality.',
|
||||
credit: [
|
||||
{
|
||||
name: 'Pokémon',
|
||||
url: 'https://www.pokemon.com/us/',
|
||||
reason: 'Sprite'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'name',
|
||||
prompt: 'What name do you want to determine the quality of?',
|
||||
type: 'string',
|
||||
max: 20,
|
||||
default: msg => msg.author.username
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, { name }) {
|
||||
if (name.toLowerCase() === 'xiao') return msg.reply('Me? I think I have the best butt around!');
|
||||
const random = MersenneTwister19937.seed(name.toLowerCase());
|
||||
const quality = integer(0, texts.length - 1)(random);
|
||||
return msg.reply(`<:nameRater:${NAME_RATER_EMOJI_ID}> ${texts[quality].replace(/{{name}}/gi, name)}`);
|
||||
}
|
||||
};
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "126.0.0",
|
||||
"version": "126.1.0",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user