oh yes, daddy
This commit is contained in:
parent
f1fcbef473
commit
81f79ca0aa
1 changed files with 25 additions and 0 deletions
25
commands/Jokes/dadjoke.js
Normal file
25
commands/Jokes/dadjoke.js
Normal file
|
@ -0,0 +1,25 @@
|
|||
exports.run = async (client, message, args, level) => {
|
||||
const { joke } = await this.fetchURL("https://icanhazdadjoke.com/", { headers: { Accept: "application/json" } });
|
||||
|
||||
return message.channel.send({ embed: client.embed(`Funny Dad Joke from ${client.user.username}`, joke.length < 1900 ? joke : `${joke.substring(0, 1900)}...`,
|
||||
{
|
||||
author: message.author.tag,
|
||||
authorIcon: message.author.avatarURL,
|
||||
thumbnail: "https://i.imgur.com/IxosIBh.png"
|
||||
})
|
||||
});
|
||||
};
|
||||
|
||||
exports.conf = {
|
||||
enabled: true,
|
||||
guildOnly: false,
|
||||
aliases: [],
|
||||
permLevel: "User"
|
||||
};
|
||||
|
||||
exports.help = {
|
||||
name: "dadjoke",
|
||||
category: "Jokes",
|
||||
description: `Hey ${message.author}, I'm dad!`,
|
||||
usage: "dadjoke"
|
||||
};
|
Loading…
Reference in a new issue