mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +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 age = random.integer(10, 100);
|
||||
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 extra = extras[random.integer(0, extras.length - 1)];
|
||||
return msg.reply(oneLine`
|
||||
|
||||
@@ -28,8 +28,9 @@ module.exports = class GoogleDoodleCommand extends Command {
|
||||
|
||||
async run(msg, { month, year }) {
|
||||
const latest = month === 'latest';
|
||||
if (latest) month = new Date().getMonth() + 1;
|
||||
if (!year) year = new Date().getFullYear();
|
||||
const now = new Date();
|
||||
if (latest) month = now.getMonth() + 1;
|
||||
if (!year) year = now.getFullYear();
|
||||
try {
|
||||
const { body } = await snekfetch.get(`https://www.google.com/doodles/json/${year}/${month}`);
|
||||
if (!body.length) return msg.say('Could not find any results.');
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "73.2.9",
|
||||
"version": "73.2.10",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user