This is better

This commit is contained in:
Dragon Fire
2018-07-31 13:55:17 -04:00
parent 16a395731f
commit f7c46094fc
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -45,7 +45,6 @@ module.exports = class HoroscopeCommand extends Command {
async fetchHoroscope(sign) {
const { text } = await request.get(`https://new.theastrologer.com/${sign}/`);
const $ = cheerio.load(text);
return $('#today').find('p').text()
.split('Intensity: ')[0];
return $('#today').find('p').first().text();
}
};
+2 -2
View File
@@ -47,8 +47,8 @@
},
"devDependencies": {
"eslint": "^5.2.0",
"eslint-config-amber": "^1.0.3",
"eslint-plugin-json": "^1.2.0"
"eslint-config-amber": "^1.0.4",
"eslint-plugin-json": "^1.2.1"
},
"eslintConfig": {
"extends": "amber",