X
X
xs_fe2022-03-22 20:03:14
Node.js
xs_fe, 2022-03-22 20:03:14

How to send a request to a site using Discord.js (bot)?

When you enter a certain command, the bot should find out how many clients are connected to the browser game server.
I saw similar bots, I know that it is possible to do this, but I do not know how.
I do not have access to editing the site on the hosting. I am not the site owner.

It probably can't be done if I'm not the owner.
And if it is possible, then how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DeFaNJI, 2022-03-22
@DeFaNJI

If the site has an API, then create a request to it using axios.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question