mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-09 09:12:07 +02:00
Fix
This commit is contained in:
@@ -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!`);
|
||||
|
||||
Reference in New Issue
Block a user