Project: uwumodewatow
I have the code in to keep it running and have uptime robot running
It had been running for hours, then decided randomly to stop
Could you please reply with the code you have to keep it running pls?
var express = require(‘express’);
var app = express();
app.get("/", (request, response) => {
response.sendStatus(200)
});
app.listen(process.env.PORT)
Do you have the process.env.port set? Should be PORT=3000
It was but now it’s not( I haven’t been in that file for hours), what should I set it to
It should normally be PORT=3000
Due to glitch mainly funneling requests through port 3000
Ok, done sttill down
In this situation I would normally use something like Uptime Robot. If you wanted I could come take a look at your code I would just need a link to it. Which idk if you would want to send it here. Check out this thread:
https://support.glitch.com/t/how-to-make-a-glitch-project-to-run-constantly/2439/15
I used uptime robot
I would use this method instead
const http = require('http'); const express = require('express'); const app = express(); app.get("/", (request, response) => { console.log(Date.now() + " Ping Received"); response.sendStatus(200); }); app.listen(process.env.PORT); setInterval(() => { http.get(`http://${process.env.PROJECT_DOMAIN}.glitch.me/`); }, 280000);
I believe if you wanted too you could take out the console.log
so its not spamming logs
The log says it’s receiving
pings, but the bot is still down
instead of const TOKEN = process.env.TOKEN
you can just put process.env.TOKEN into the
bot.login(//codehere);
Bot still not back up
may I join the project so I can temporarily see whats going on?
I have let you join now
Just lemme know if it worked
I think I may have found the issue. The event is working when being emitted
It did not work, I also tried some other things for the same exact errors
please regen the token please so I can make sure this is no the issue
ok I will regenerate it
It still does not work
I’m not sure what would be the issue here. Please wait for @glitch_support to respond on this request. They have root access. They would be able to fix this issue if its server related unless its something with the Bot account as a lot of bot accounts have been banned from using glitch.
But I highly doubt this would be the issue. I’m sorry I tried to help.
https://support.glitch.com/t/discord-bot-ip-banned-by-api/9255
Also @Redstone-Hamster Welcome To The Glitch Community! We are happy to have you here! I’m really sorry I wasn’t able to resolve this issue hopefully staff can help you. Have a nice rest of your day/night!
Hi.
I might be able to help you, but I need permission for you to let me go and look in your project for the issue.
Is that okay to you?
Also, welcome to the community.