mirror of
https://github.com/Technicolor-creamsicle/Osselbot.git
synced 2025-01-02 12:46:41 -05: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