From 608769fc534193f5798ec5c58904c6600844bcff Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 23 Mar 2021 16:04:34 -0400 Subject: [PATCH] Update Xiao Facts, Add Banana Unit --- assets/json/xiao-fact.json | 14 ++++++++++---- commands/edit-number/units.js | 4 ++++ package.json | 2 +- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/assets/json/xiao-fact.json b/assets/json/xiao-fact.json index 7ed1aa81..d03b7473 100644 --- a/assets/json/xiao-fact.json +++ b/assets/json/xiao-fact.json @@ -24,7 +24,6 @@ "The `math-quiz` command used to support division, but it was so difficult it was removed.", "You have a better chance to win the real lottery than to win Xiao's `lottery` command.", "The `sorting-hat` command uses the exact same answer weights as the real quiz, so you'll likely get the exact same results.", - "The `cleverbot` command used to be freely usable for all users, but was made owner-only after Cleverbot's website made the API paid.", "The `portal-send` command isn't called \"portal\" just in case a command based on Valve's game of the same name ever gets created.", "The `fidget` command exists as Xiao's old beta testing versions were based on the character.", "For commands whose names start with an \"x\", omitting the x is an alias. This is due to Xiao's prefix, `x;`, starting with an x.", @@ -40,7 +39,7 @@ "Xiao used to have several more roleplay commands, such as `cuddle`, `marry`, `divorce`, and `falcon-punch`. These were merged with other commands due to lack of good GIFs.", "The `anime` and `manga` commands have used MyAnimeList, Kitsu, and Anilist over their development. The current use of Anilist is due to Dragon Fire's status as a data mod there.", "The `company` command has Dragon Fire's logo inserted into it manually, Clearbit does not actually acknowledge us.", - "The `flickr` command is NSFW due to an incident that caused a large photo of a male genitalia to be sent when \"cat\" was searched. It was promptly made NSFW.", + "The `flickr` command used to be NSFW due to an incident that caused a large photo of a male genitalia to be sent when \"cat\" was searched. It was promptly made NSFW, as the site offers no filter. However, now the command's image results are scanned with AI.", "The `periodic-table` command will give Batman if you ask for Atomic Number 0.", "The `league-of-legends` command will give the results for Temmie if you search \"satan\".", "The `give-flower` command was the first command added to Xiao.", @@ -57,7 +56,8 @@ "In the `roman` command, typing \"zero\" will give you \"_nulla_\", the latin word for zero. This is because zero does not exist in roman numerals.", "The `horse-race` command contains several references: real horse names, My Little Pony characters, and various pop culture jokes. Even a few Xiao jokes are snuck in there!", "In `horse-race`, you will occasionally encounter horses named \"Donald Trump\" and \"Dragon Fire\". Be careful, as these aren't horses, their times are based on the actual human running the race!", - "The `screenshot` command uses a massive 2,000,000 entry array to check for adult sites. Some _still_ fall through the cracks.", + "Numerous commands use a massive 2,000,000 entry array to check for adult sites. Some _still_ fall through the cracks.", + "Numerous commands use an AI powered by Tensorflow to check for NSFW content. It is about 93% accurate.", "The `ship` command will call you a narcissist if you test yourself with yourself.", "Whenever Dragon Fire gets a real fortune cookie, he adds the fortune to the `fortune` command.", "The `whos-that-pokemon` command will play a sound effect and the Pokémon's cry if both you and the bot are in a voice channel when the command is used.", @@ -69,5 +69,11 @@ "The `car-race` command is full of various pop-culture cars, joke cars, and even things that aren't even cars, such as \"runner\", a literal olympic runner.", "The \"donut\" color selection in `connect-four` is a reference to Pokémon's 4Kids dub, when rice balls were censored into jelly-filled donuts.", "The AI in `nim` and `tic-tac-toe` are literally unbeatable, as their games are solved and have a definitive mathematical solution. The AI in `chess` and `connect-four` however are very easily beatable.", - "While some commands have actual AI (like `chess` and `tic-tac-toe`), others are literally just randomly choosing what to do, such as `battle` and `jenga`." + "While some commands have actual AI (like `chess` and `tic-tac-toe`), others are literally just randomly choosing what to do, such as `battle` and `jenga`.", + "You can convert units of length to bananas in the `units` command.", + "The `guess-song` command has numerous meme songs which are inserted manually into the randomizer.", + "All stories in the `kino` command are written by dragonfire535 himself.", + "The `tweet` command uses follower count to calculate realistic average reply, retweet, and like counts based on the user provided.", + "The `cleverbot` command adds a use for every message sent to Cleverbot, not just when starting the conversation.", + "Xiao will automatically leave a voice channel if she is the only member left in it." ] diff --git a/commands/edit-number/units.js b/commands/edit-number/units.js index e3647cc5..a3fe2df0 100644 --- a/commands/edit-number/units.js +++ b/commands/edit-number/units.js @@ -2,6 +2,10 @@ const Command = require('../../structures/Command'); const math = require('mathjs'); const { stripIndents } = require('common-tags'); const { formatNumber } = require('../../util/Util'); +math.createUnit('banana', { + definition: '0.178 meters', + aliases: ['bananas'] +}); module.exports = class UnitsCommand extends Command { constructor(client) { diff --git a/package.json b/package.json index a7444ecc..4c55b578 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "133.1.0", + "version": "133.1.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {