mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
This is better
This commit is contained in:
@@ -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
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user