repl.uptime is a Go package that keeps your Replit (repl) project continuously uptimed, ensuring 24/7 availability with no rest. It is a Go version inspired by the npm package repl.uptime.
To use repl.uptime, follow these two simple steps:
- Create an
uptime.json
file with your desired options. For example:
{
"debug": false,
"api": true,
"port": "3000",
"path": "/"
}
- Import the package in your Go code and call
replup.Uptime()
in yourmain()
function:
package main
import (
"github.com/abdlmutii/repl.uptime"
)
func main() {
// Your other code
replup.Uptime()
// Your other code
}
To install the repl.uptime library, follow these steps:
- Open your command line interface and run the following command:
go get github.com/abdlmutii/repl.uptime
- Import the library in your Go code using the import statement:
import "github.com/abdlmutii/repl.uptime"
repl.uptime is licensed under the MIT License. See the LICENSE file for details.
Credits go to Abdlmu'tii for creating the Go version of repl.uptime and to Shuruhatik for maintaining the original npm package and the uptime API.
For any inquiries or help, you can reach us:
- Email: [email protected]
- Discord Server: dsc.gg/abdlmutii
- Shuruhatik Discord Server: discord.gg/YEdA2BpQrd
Feel free to contact us with any questions, suggestions, or issues you may have.