fix this
This commit is contained in:
parent
001e7253c0
commit
3f05cfffa2
|
@ -1,7 +1,7 @@
|
||||||
exports.run = async (client, message, args, level) => {
|
exports.run = async (client, message, args, level) => {
|
||||||
const { joke } = await this.fetchURL("https://icanhazdadjoke.com/", { headers: { Accept: "application/json" } });
|
const { joke } = await client.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)}...`,
|
return message.channel.send({ embed: client.embed(`Funny Dad Joke from ${client.user.username}`, joke,
|
||||||
{
|
{
|
||||||
author: message.author.tag,
|
author: message.author.tag,
|
||||||
authorIcon: message.author.avatarURL,
|
authorIcon: message.author.avatarURL,
|
||||||
|
@ -20,6 +20,6 @@ exports.conf = {
|
||||||
exports.help = {
|
exports.help = {
|
||||||
name: "dadjoke",
|
name: "dadjoke",
|
||||||
category: "Jokes",
|
category: "Jokes",
|
||||||
description: `Hey ${message.author}, I'm dad!`,
|
description: `Hey there kiddo, I'm dad!`,
|
||||||
usage: "dadjoke"
|
usage: "dadjoke"
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue