Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

122
Views
El bot de discordia de JavaScript sigue desconectándose con Keep Alive

Tengo un bot de discordia de Javascript, y se está haciendo cada vez más grande, el problema es que cada vez que cierro mi repetición. En unos 30 minutos, mi bot se desconecta. Uso este código en mi archivo keep_alive.js

 http.createServer(function (req, res) { res.write("Online:)"); res.end(); }).listen(8080);``` //I have this in index.js: `const keep_alive = require('./keep_alive.js')`
about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

La mejor solución que he encontrado y uso (y es gratis) es pm2. No requiere ningún código en su archivo en absoluto

https://pm2.keymetrics.io/

 npm i pm2 -g // navigate to the folder with your main bot.js file (in this example it is called index.js) pm2 start index.js // followed by pm2 save // Optionally you can monitor the whole server as well with pm2-server-monit

Viene con un tablero gratis también

about 4 years ago · Santiago Gelvez Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!