mirror of
https://github.com/Technicolor-creamsicle/Osselbot.git
synced 2024-06-29 14:05:23 +00:00
aaaa
This commit is contained in:
parent
a9cf34717b
commit
0c14891aba
|
@ -243,14 +243,16 @@ if (command == "xkcd") {
|
|||
try {
|
||||
var response = await fetch(`https://xkcd.com/${args[0]}/info.0.json`);
|
||||
comic = await response.text();
|
||||
return comic
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
return message.reply("Something went wrong... Check your number and try again later.")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
getcomic();
|
||||
|
||||
let embed = new Discord.MessageEmbed()
|
||||
|
|
Loading…
Reference in New Issue
Block a user