mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Chuck Norris Jokes
This commit is contained in:
@@ -0,0 +1,33 @@
|
|||||||
|
const Command = require('../../structures/Command');
|
||||||
|
const snekfetch = require('snekfetch');
|
||||||
|
|
||||||
|
module.exports = class ChuckNorrisCommand extends Command {
|
||||||
|
constructor(client) {
|
||||||
|
super(client, {
|
||||||
|
name: 'chuck-norris',
|
||||||
|
aliases: ['chuck', 'norris'],
|
||||||
|
group: 'random-res',
|
||||||
|
memberName: 'chuck-norris',
|
||||||
|
description: 'Responds with a Chuck Norris quote.',
|
||||||
|
args: [
|
||||||
|
{
|
||||||
|
key: 'name',
|
||||||
|
prompt: 'What would you like the name to be?',
|
||||||
|
type: 'string',
|
||||||
|
default: 'Chuck'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
async run(msg, args) {
|
||||||
|
const { name } = args;
|
||||||
|
const { body } = await snekfetch
|
||||||
|
.get('http://api.icndb.com/jokes/random')
|
||||||
|
.query({
|
||||||
|
escape: 'javascript',
|
||||||
|
firstName: name
|
||||||
|
});
|
||||||
|
return msg.say(body.value.joke);
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
<li>Random Cats, Dogs, VOCALOID Songs, and Xiao Pai Images!</li>
|
<li>Random Cats, Dogs, VOCALOID Songs, and Xiao Pai Images!</li>
|
||||||
<li>8 Ball, Choose, Coin Flip, Magic Conch, Roll, and Member Roulette!</li>
|
<li>8 Ball, Choose, Coin Flip, Magic Conch, Roll, and Member Roulette!</li>
|
||||||
<li>Waifu and Ship Rating!</li>
|
<li>Waifu and Ship Rating!</li>
|
||||||
<li>Random Compliments, Quotes, Fact Core Quotes, Fortunes, Names, and Roasts!</li>
|
<li>Random Compliments, Chuck Norris Jokes, Quotes, Fact Core Quotes, Fortunes, Names, and Roasts!</li>
|
||||||
<li>Roleplay Commands!</li>
|
<li>Roleplay Commands!</li>
|
||||||
<li>Search Various sites including:</li>
|
<li>Search Various sites including:</li>
|
||||||
<ol>
|
<ol>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
<li>Random Cats, Dogs, VOCALOID Songs, and Xiao Pai Images!</li>
|
<li>Random Cats, Dogs, VOCALOID Songs, and Xiao Pai Images!</li>
|
||||||
<li>8 Ball, Choose, Coin Flip, Magic Conch, Roll, and Member Roulette!</li>
|
<li>8 Ball, Choose, Coin Flip, Magic Conch, Roll, and Member Roulette!</li>
|
||||||
<li>Waifu and Ship Rating!</li>
|
<li>Waifu and Ship Rating!</li>
|
||||||
<li>Random Compliments, Quotes, Fact Core Quotes, Fortunes, Names, and Roasts!</li>
|
<li>Random Compliments, Chuck Norris Jokes, Quotes, Fact Core Quotes, Fortunes, Names, and Roasts!</li>
|
||||||
<li>Roleplay Commands!</li>
|
<li>Roleplay Commands!</li>
|
||||||
<li>Search Various sites including:</li>
|
<li>Search Various sites including:</li>
|
||||||
<ol>
|
<ol>
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiaobot",
|
"name": "xiaobot",
|
||||||
"version": "27.7.1",
|
"version": "27.8.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