mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 05:54:33 +02:00
Inches can't be 12
This commit is contained in:
@@ -32,7 +32,7 @@ module.exports = class GuessLooksCommand extends Command {
|
|||||||
const hairStyle = hairStyles[random.integer(0, hairStyles.length - 1)];
|
const hairStyle = hairStyles[random.integer(0, hairStyles.length - 1)];
|
||||||
const age = random.integer(10, 100);
|
const age = random.integer(10, 100);
|
||||||
const feet = random.integer(3, 7);
|
const feet = random.integer(3, 7);
|
||||||
const inches = random.integer(0, 12);
|
const inches = random.integer(0, 11);
|
||||||
const weight = random.integer(50, 300);
|
const weight = random.integer(50, 300);
|
||||||
const extra = extras[random.integer(0, extras.length - 1)];
|
const extra = extras[random.integer(0, extras.length - 1)];
|
||||||
return msg.reply(oneLine`
|
return msg.reply(oneLine`
|
||||||
|
|||||||
@@ -28,8 +28,9 @@ module.exports = class GoogleDoodleCommand extends Command {
|
|||||||
|
|
||||||
async run(msg, { month, year }) {
|
async run(msg, { month, year }) {
|
||||||
const latest = month === 'latest';
|
const latest = month === 'latest';
|
||||||
if (latest) month = new Date().getMonth() + 1;
|
const now = new Date();
|
||||||
if (!year) year = new Date().getFullYear();
|
if (latest) month = now.getMonth() + 1;
|
||||||
|
if (!year) year = now.getFullYear();
|
||||||
try {
|
try {
|
||||||
const { body } = await snekfetch.get(`https://www.google.com/doodles/json/${year}/${month}`);
|
const { body } = await snekfetch.get(`https://www.google.com/doodles/json/${year}/${month}`);
|
||||||
if (!body.length) return msg.say('Could not find any results.');
|
if (!body.length) return msg.say('Could not find any results.');
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "73.2.9",
|
"version": "73.2.10",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user