Add back idiot command

This commit is contained in:
Dragon Fire
2024-05-21 20:40:42 -04:00
parent 123cdf3f21
commit b82e80a19d
4 changed files with 24 additions and 2 deletions
+1
View File
@@ -36,6 +36,7 @@ CLEVERBOT_KEY=
GITHUB_ACCESS_TOKEN=
GOOGLE_KEY=
GOV_KEY=
IDIOT_URL=
SAUCENAO_KEY=
SPOTIFY_KEY=
SPOTIFY_SECRET=
+3 -1
View File
@@ -75,6 +75,7 @@ things, I'm not taking any chances.
* `GITHUB_ACCESS_TOKEN` is your access token for GitHub. [Follow these steps](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic) to make one.
* `GOOGLE_KEY` is your API key for Google, used for the YouTube Data API. You can get one [here](https://console.cloud.google.com/apis/dashboard). You must also [activate the YouTube Data API](https://console.cloud.google.com/marketplace/product/google/youtube.googleapis.com?q=search).
* `GOV_KEY` is your API key for NASA. You get get one [here](https://api.nasa.gov/).
* `IDIOT_URL` is a URL, ideally to the [Wikipedia page of an idiot](https://en.wikipedia.org/wiki/Donald_Trump). By default, it will reply with "_Stares at you._"
* `SAUCENAO_KEY` is your API key for SauceNAO. Register, login, and click [here](https://saucenao.com/user.php?page=search-api) to get one.
* `SPOTIFY_KEY` and `SPOTIFY_SECRET` are your key and secret for the Spotify API. You can get one by [following these instructions](https://developer.spotify.com/documentation/web-api).
* `THECATAPI_KEY` is your API key for The Cat API. You can get one [here](https://thecatapi.com/).
@@ -107,7 +108,7 @@ things, I'm not taking any chances.
19. Start Xiao up!
## Commands
Total: 513
Total: 514
### Utility:
@@ -235,6 +236,7 @@ Total: 513
* **give-flower:** Gives Xiao Pai a flower.
* **hello-world:** Hello world!
* **hi:** Hello.
* **idiot:** Sends a link to an idiot.
* **rickroll:** Sends a link to the "Never Gonna Give You Up" music video.
* **tableflip:** Flips a table... With animation!
* **where-is-everybody:** Where is everybody?
+19
View File
@@ -0,0 +1,19 @@
const Command = require('../../framework/Command');
const { IDIOT_URL } = process.env;
module.exports = class IdiotCommand extends Command {
constructor(client) {
super(client, {
name: 'idiot',
aliases: ['moron'],
group: 'single',
memberName: 'idiot',
description: 'Sends a link to an idiot.'
});
}
run(msg) {
if (!IDIOT_URL) return msg.reply('_Stares at you._')
return msg.say(IDIOT_URL);
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "151.3.0",
"version": "151.4.0",
"description": "Your personal server companion.",
"main": "Xiao.js",
"private": true,