Idiot Command

This commit is contained in:
Dragon Fire
2020-04-21 10:04:14 -04:00
parent 2b03a8cdd0
commit fdee7cdcca
4 changed files with 30 additions and 2 deletions
+1
View File
@@ -39,6 +39,7 @@ GITHUB_USERNAME=
GOOGLE_CALENDAR_ID=
GOOGLE_KEY=
GOV_KEY=
IDIOT_PAGE_ID=
IMGUR_KEY=
OPENWEATHERMAP_KEY=
OSU_KEY=
+3 -1
View File
@@ -132,7 +132,7 @@ in the appropriate channel's topic to use it.
## Commands
Total: 395
Total: 396
### Utility:
@@ -245,6 +245,7 @@ Total: 395
* **fly:** Sends a fake fly that looks surprisngly real.
* **give-flower:** Gives Xiao Pai a flower.
* **hi:** Hello.
* **idiot:** Responds with the Wikipedia page of an idiot.
* **isnt-joke:** Isn't joke...
* **its-joke:** It's joke!
* **just-do-it:** Sends a link to the "Just Do It!" motivational speech.
@@ -1146,6 +1147,7 @@ here.
* wikihow ([API](https://www.wikihow.com/api.php))
- [Wikipedia](https://www.wikipedia.org/)
* fact ([API](https://en.wikipedia.org/w/api.php))
* idiot (URL)
* itunes ([Language Code Data](https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes))
* time ([Time Zone Data](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones))
* wikipedia ([API](https://en.wikipedia.org/w/api.php))
+25
View File
@@ -0,0 +1,25 @@
const Command = require('../../structures/Command');
const IDIOT_PAGE_ID = process.env.IDIOT_PAGE_ID || 'Donald_Trump';
module.exports = class IdiotCommand extends Command {
constructor(client) {
super(client, {
name: 'idiot',
aliases: ['moron'],
group: 'single',
memberName: 'idiot',
description: 'Responds with the Wikipedia page of an idiot.',
credit: [
{
name: 'Wikipedia',
url: 'https://www.wikipedia.org/',
reason: 'URL'
}
]
});
}
run(msg) {
return msg.say(`https://en.wikipedia.org/wiki/${IDIOT_PAGE_ID}`);
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "113.9.1",
"version": "113.10.0",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {