mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:26:21 +02:00
Minor Changes
This commit is contained in:
@@ -150,5 +150,6 @@
|
|||||||
"dragonite": "149",
|
"dragonite": "149",
|
||||||
"mewtwo": "150",
|
"mewtwo": "150",
|
||||||
"mew": "151",
|
"mew": "151",
|
||||||
"missingno.": "0"
|
"missingno.": "0",
|
||||||
|
"missingno": "0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[
|
[
|
||||||
"*puts you in the oven*",
|
"*Puts you in the oven.*",
|
||||||
"You're so stupid.",
|
"You're so stupid.",
|
||||||
"Sorry, I can't hear you over how annoying you are.",
|
"Sorry, I can't hear you over how annoying you are.",
|
||||||
"I've got better things to do.",
|
"I've got better things to do.",
|
||||||
@@ -31,6 +31,6 @@
|
|||||||
"Every time you touch me I have to go home and wash all my clothes nine times just to get a normal smell back.",
|
"Every time you touch me I have to go home and wash all my clothes nine times just to get a normal smell back.",
|
||||||
"If I had a dollar for every brain you don't have, I'd have one dollar.",
|
"If I had a dollar for every brain you don't have, I'd have one dollar.",
|
||||||
"I'd help you succeed but you're incapable.",
|
"I'd help you succeed but you're incapable.",
|
||||||
"Your hairline is built like a graph chart, positive and negative forces attract but the clippers and your hair repel",
|
"Your hairline is built like a graph chart, positive and negative forces attract but the clippers and your hair repel.",
|
||||||
"I know a good joke! You!"
|
"I know a good joke! You!"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -15,8 +15,7 @@ module.exports = class CatFactCommand extends Command {
|
|||||||
async run(msg) {
|
async run(msg) {
|
||||||
try {
|
try {
|
||||||
const { body } = await snekfetch
|
const { body } = await snekfetch
|
||||||
.get('https://catfact.ninja/fact')
|
.get('https://fact.birb.pw/api/v1/cat');
|
||||||
.query({ max_length: 2000 });
|
|
||||||
return msg.say(body.fact);
|
return msg.say(body.fact);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiaobot",
|
"name": "xiaobot",
|
||||||
"version": "41.5.0",
|
"version": "41.5.1",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Shard.js",
|
"main": "Shard.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user