I would honestly highly recommend buying a VPS for $5/Month from DigitalOcean and host the nobolox.js server on there. It would be way more secure than using glitch.
There are other alternatives, Currently I am using a Pterdactyl Panel to host my bot(s). They offer Free hosting on their VPS, aswell as paid. Such as
:buy: Paid Discord Plan #1
RAM - 128MB
CPU - 4x 3.90 GHz (Fully Unlocked)
Disk - SSD 1 GB
LOCAT - France
NODE - fr1.eu
Database - YES
Extra Port - YES
Support : Dedicated
PRICE - 1$
:buy: Paid Discord Plan #2
RAM - 512MB
CPU - 4x 3.90 GHz (Fully Unlocked)
Disk - SSD 2 GB
LOCAT - France
NODE - fr1.eu
Database - YES
Extra Port - YES
Support : Dedicated
PRICE - 2$
:buy: Paid Discord Plan #3
RAM - 1024MB
CPU - 4x 3.90 GHz (Fully Unlocked)
Disk - SSD 4 GB
LOCAT - France
NODE - fr1.eu
Database - YES
Extra Port - YES
Support : Dedicated
PRICE - 3$
(Copied from their plans channel)
It is perfect for this type of Bot, (Screenshots from my custom API that i made for British Army using Bloxy.
(96 MB - 99 MB) in Memory.
(Less than 1% CPU).
Thanks for making this kind of work it will help others with cafes and restaurants that want to make an automated application center. This will make them happy so they donāt have to rank them themselves.
Didnāt work for me. I have no idea what I was doing so I gave up, haha?
I would be happy to help you. Please message me with the errors you are receiving.
When running require('dotenv').config({ path: './.env' })
.I get syntax error near unexpected token `ādotenvāā
Any way to stop the glitch app from sleeping? Thatās kind of what breaks my thing.
You need to install dotenv FIRST in the command line.
I do cover it in my tutorial, Also make sure your path is correct i.e ./.env
Ah I see it, thank you. This really helped.
I dont see the console. I only see the output.
couldnāt a hacker just run game.ReplicatedStorage.RankPlayer:FireServer(0) and get a free rank.
They could yes, You would have to do server checks or have someone code a secure one for u
Like, how would I make it secure? Any suggestions.
-
Have it run as a Normal Script, (You would loose the buttons) Which is what my Service uses (I wont link it on here due to it would be advertising)
-
Add some kind of Keys to the script as a param of the Event (Key, userid, Rankid) smth like that
When I tried to use it, It just spams the rank it self, and counticly, promotes himself.
What do you mean by spams the rank and promotes himself? Is there an error you are receiving?
EDIT: I messaged you.
No errors, Do you have discord then Iāll show you whatās happending.
Edit: Got it sorted out/got it working
I recieve an errormessage when I want to use the command $require(ādotenvā).config({ path: ā./.envā })
This is the error message:
-su: syntax error near unexpected token `ādotenvāā
May someone help me?
The command line is not in JS; you canāt run JS code in it.