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

301
Views
Discord bot no se está ejecutando con uptime robot y repl.it

Quería hacer mi propio bot de discordia que debería estar en línea sin mi PC funcionando, así que seguí este tutorial: https://www.youtube.com/watch?v=Gqurhm2QxA0

Todo funcionó bien y ayer mi bot estaba funcionando todo el tiempo, incluso sin que el sitio web repl.it estuviera en línea. Pensé que mi bot de Discord se quedaría en línea para siempre. Pero hoy no está en línea, incluso si reinicio mi proyecto repl.it. Aquí está mi código para index.js:

 const express = require("express"); const app = express(); const discord = require("discord.js"); const client = new discord.Client({intents:["GUILDS","GUILD_MESSAGES"]}); var bump_timeout = true; app.listen(3000,()=>{ console.log("bot is online"); }); app.get("/",(req, res) =>{ res.send("hello world uwu"); }); client.on("message", message => { if(message.content === "!d bump" && bump_timeout==true){ bump_timeout = false; message.channel.send("you got 100 coins!"); setTimeout(bump_switchtimeout, 5000); } }) function bump_switchtimeout(){ bump_timeout = true; } client.on("ready", () => { console.log("bot is ready"); }) client.login(*here is the token*);

Espero que puedas averiguar por qué el bot no se conecta.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Repl.it solo tiene una cierta cantidad de tiempo para mantener su proyecto en línea, y una vez que pasa ese umbral, ya no permanecerá en línea. También tiene que ver con el hecho de que repl.it solo mantiene su proyecto en línea si hay un uso activo de él (por ejemplo, con un sitio web, la gente está visitando dicho sitio web). Nada que ver con tu código. Pruebe Heroku, que es gratuito, u otros servicios de alojamiento de pago https://www.heroku.com/ https://plox.host/discordbot-hosting

about 4 years ago · Juan Pablo Isaza 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!