mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 06:10:49 +02:00
Idiot Command
This commit is contained in:
@@ -39,6 +39,7 @@ GITHUB_USERNAME=
|
||||
GOOGLE_CALENDAR_ID=
|
||||
GOOGLE_KEY=
|
||||
GOV_KEY=
|
||||
IDIOT_PAGE_ID=
|
||||
IMGUR_KEY=
|
||||
OPENWEATHERMAP_KEY=
|
||||
OSU_KEY=
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "113.9.1",
|
||||
"version": "113.10.0",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user