Skip to content

Commit

Permalink
Update horoscope.js
Browse files Browse the repository at this point in the history
  • Loading branch information
chauhanshivam079 committed Nov 6, 2023
1 parent dc28ac6 commit 5d702a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot_modules/horoscope.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Horoscope{
const { data } = await axios.get(this.#url + `${index + 1}`);
const $ = cheerio.load(data);
const horoscope = $("body > div.grid.grid-right-sidebar.primis-rr > main > div.main-horoscope > p:nth-child(2)").text();
let result = `*Today's Date:-* ${horoscope.split("-")[0]}\n*Nature Hold's For You:-* ${horoscope.split("-")[1]}`;
let result = `*Today's Date:-* ${horoscope.split("-")[0]}\n*Nature Hold's For You:-* ${horoscope.substring(horoscope.indexOf('-')+1)}`;
await sock.sendMessage(chatId,{text:result},{quoted:msg});
}
}
Expand Down

0 comments on commit 5d702a8

Please sign in to comment.