Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kartikesingh/uptime-robo
An package to auto ping your websites.
https://github.com/kartikesingh/uptime-robo
Last synced: 24 days ago
JSON representation
An package to auto ping your websites.
- Host: GitHub
- URL: https://github.com/kartikesingh/uptime-robo
- Owner: KartikeSingh
- License: mit
- Created: 2021-10-15T06:31:12.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-16T07:31:39.000Z (about 3 years ago)
- Last Synced: 2024-04-25T04:02:13.213Z (9 months ago)
- Language: JavaScript
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 ?
```js
// 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
```js
const Robot = new robot("your mongo URI");
// Everything else is same.
```# Support
for support or issues or queries contace me on my [discord server](https://discord.gg/XYnMTQNTFh) or create a issue [here](https://github.com/KartikeSingh/uptime-robo/issues).