mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 05:51:42 +02:00
This is better
This commit is contained in:
@@ -45,7 +45,6 @@ module.exports = class HoroscopeCommand extends Command {
|
|||||||
async fetchHoroscope(sign) {
|
async fetchHoroscope(sign) {
|
||||||
const { text } = await request.get(`https://new.theastrologer.com/${sign}/`);
|
const { text } = await request.get(`https://new.theastrologer.com/${sign}/`);
|
||||||
const $ = cheerio.load(text);
|
const $ = cheerio.load(text);
|
||||||
return $('#today').find('p').text()
|
return $('#today').find('p').first().text();
|
||||||
.split('Intensity: ')[0];
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
+2
-2
@@ -47,8 +47,8 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^5.2.0",
|
"eslint": "^5.2.0",
|
||||||
"eslint-config-amber": "^1.0.3",
|
"eslint-config-amber": "^1.0.4",
|
||||||
"eslint-plugin-json": "^1.2.0"
|
"eslint-plugin-json": "^1.2.1"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"extends": "amber",
|
"extends": "amber",
|
||||||
|
|||||||
Reference in New Issue
Block a user