Im building a discord bot(Javascript, Node.js, Discord.js) which is based on a game (a online multiplayer).So, im pretty much done developing the bot except for one thing which I really wish I could add. So, this game has some highscores which can be viewed here - https://www.hzgaming.net/high.php . So, I want to display those highscores (Highscore money - https://www.hzgaming.net/high.php?scores=money) (Highscore materials - https://www.hzgaming.net/high.php?scores=materials) and all those. So, what I would like to have is..when a user types a cmd like '!highscore money', it should show the highscore available on that website link I gave above, and similarly..when they use '!highscore materials' it should show the highscore of materials from that link respectivly. I want it to be from that link because, it keeps on changing and gets updated. Also, im pretty sure its possible because, there is a similar bot which shows the same thing as I explained. I hope you understood what I meant. I would really love to get an answer for this, also it would be great if an example code is provided with the answer so that its easy to understand.
An example for the cmd is given below -
user - !highscore money BOT - Money High Scores
- Celia_Fernandz - $41,085,610 total wealth
- Armando_Domrani - $40,204,664 total wealth
- Sergio_Box - $38,199,486 total wealth
- Tony_Sativa - $30,193,261 total wealth
- Aminox_Trigui - $28,052,188 total wealth
- Ben_Martin - $23,439,003 total wealth
- Daryl_Grimes - $17,128,518 total wealth
- Luccas_Von_Koening - $16,457,964 total wealth
- Charlie_Hustle - $14,452,056 total wealth
- Kevin_Maddox - $13,630,605 total wealth
user- !highscore materials BOT - 1. Chapo_Diamond - 5,749,300 materials 2. Van_Damme - 4,923,046 materials 3. Brandon_Heath_Tsung - 3,906,395 materials 4. Armando_Domrani - 3,241,925 materials 5. Tazz_Equinox - 3,187,045 materials 6. Danny_Ted - 2,868,088 materials 7. Jack_Paterson - 2,748,249 materials 8. John_Dixon - 2,548,250 materials 9. Gab_Alphonse - 2,252,285 materials 10. Don_Thomax - 2,131,177 materials ((ALL THE REPLY BY THE BOT WILL BE EMBEDS)) (yea, so somehow those values should keep on updating, thats why I gave the link above)
Pls note that the code should be javascript using discord.js and node.js. Thank you <3 :)