ffrrancis / pingr

Pings your repl/glitch project 24/7 without you having to have the tab open.
https://ffrrancis.github.io/pingr/
The Unlicense
4 stars 5 forks source link

How I make multiple ping and how I setup the time of ping like 1 ping per 10 second #4

Closed JohanChungus closed 1 year ago

JohanChungus commented 1 year ago

how I make multiple ping I see on config.json only 1 can I add more?

ffrrancis commented 1 year ago

To ping multiple websites, set up your config.json like this:

{
  "links": ["LINK 1", "LINK 2"]
}

To modify the interval in between pings, try this:

pinger.ping([links], 10); // the second arg is the interval

This may not work as I haven't messed around with this package and repo for a while lol.

ffrrancis commented 1 year ago

Please tell me if my solution works so I can close this issue!!

JohanChungus commented 1 year ago

{ "links": ["https://nexus.5xi.repl.co", "https://pingr.dcn0.repl.co"] } like this? I try its say Successfully Pinged https://nexus.5xi.repl.co,https://pingr.dcn0.repl.co with status 404 found but the ping interval is work

JohanChungus commented 1 year ago

I ask chatgpt to but its still same its say like above

ffrrancis commented 1 year ago

Fork the updated version of the repo and see if that works.

Also, I wouldn't recommend asking Chat GPT for coding advice, instead use something like Github Copilot.

ffrrancis commented 1 year ago

Did that fix the issue or not?

JohanChungus commented 1 year ago

Ok Thanks That Works I Will Close The Comment