uptime-robo
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Installations

npm i uptime-robo

What ?

An module to auto ping your websites / bots, so that they don't sleep.

Why ?

  • Easy to use
  • Auto database setup
  • customizable

How ?

// Importing for Node JS
const robot = require('uptime-robo').robot;

// Importing for TypeScript / vanilla JavaScript
import {robot} from 'uptime-robo';

const Robot = new robot();

// Add urls for sending auto pings
// Time is optional and it should be in milliseconds
const url = "http://localhost:3000";
const time = 10000;

Robot.add(url,time);

// Remove a url from auto pings
Robot.remove(url)

Adding Mongo Database

const Robot = new robot("your mongo URI");
// Everything else is same.

Support

for support or issues or queries contace me on my discord server or create a issue here.

Readme

Keywords

Package Sidebar

Install

npm i uptime-robo

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

11.2 kB

Total Files

8

Last publish

Collaborators

  • shisui