This commit is contained in:
Dragon Fire
2020-04-20 21:46:15 -04:00
parent 4e9148a294
commit 1a04990030
+1 -1
View File
@@ -34,7 +34,7 @@ module.exports = class LolcatCommand extends Command {
.get('https://speaklolcat.com/')
.query({ from });
const $ = cheerio.load(text);
const translated = $('textarea[id="to"]').first().text;
const translated = $('textarea[id="to"]').first().text();
return msg.say(translated);
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);