How do I make it so my discord bot can stay online all of the time without the new glitch upgrade thing : ( pls help


Here is some code its working but its always off and i need it to be always on

const Discord = require(‘discord.js’)
const client = new Discord.Client()

client.login(process.env.TOKEN)

client.on(“ready”, () => {
console.log(‘Data.exe Has Started!’)
client.user.setActivity('Bot Zone ', { type: “PLAYING”})

})

Well, Glitch has to pay for their servers somehow and running a Discord.JS bot 24/7 cost money. You have to pay for:

  • Bandwidth
  • Maintenance
  • Storage
  • Processing Power
  • and more

And that can cost a lot of money.

4 Likes

is thier any other way or no

also will this also apply for websites

No.

1 Like

thanks for telling me !

1 Like

No.

It will not apply on static sites. Static sites are online 24/7, they will not sleep. A static site is a site which does not have a package.json or any other Glitch-specific configuration files.

2 Likes

I believe they log IPs so they can ban accounts based on a IP.
Also by you making a post (in public) you are admitting that you will make an alt to break the rules.

2 Likes

ok i wont if it violates the rules

2 Likes

You can always upgrade your membership, however. See glitch.com/pricing.

2 Likes

I see that you’re just starting to write a bot. That presents an uncommon opportunity. I have a starter example here A new Discord bot starter, no pinging needed that stays online without wasting project hours when the bot has nothing to do.

The drawback though is that you don’t have discord.js caches populated, so you’d pretty much have to write a bot from scratch with that in mind. That’s not something most of the people complaining about this are in the position of doing. But because you’re starting out and haven’t gone crazy with using cached objects yet, I’m specially bringing this up here.

1 Like

thanks but do I need to make a whole Entire new code for it or copy and paste?

Probably write new code, since it does not look like an average discord bot to me

1 Like

Thanks! to u guys I can make an epic discord bot B )

1 Like

Wait but thier is an error and I did not type anything in 0_o

You do have to enter some data in the .env file to get started. Let me know if there’s a problem with the library or relay though.

1 Like

thx but also is this illegal or it will get me in big troble?

It’s not illegal. If you develop on a platform on roblox/discord or such, you should’ve probably known of this by now.

1 Like

Im kinda new to this coding stuff so dont really say I should know this, im still learning on how to do certain stuff im not no Big brain developer guy but thanks for telling me

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.