UNPKG

@octor/monitor

Version:

a script that makes your bots 24/7

22 lines (21 loc) 1.32 kB
const express = require('express') const path = require('path') const OctorUptimer = (port) => { port = port || 80 const app = express() app.listen(80, () => { console.log(` ██████ ██████ ████████ ██████ ██████ ██████ ██ ██████ ██ ██ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██████ ██████ ██ ██████ ██ ██ ██████ ███████ ██████ ██████ ██████ `) console.log("Octor webview successfuly started on port " + port) }) app.get('/', async (req, res) => { res.status(200).sendFile(path.join(__dirname, '/index.html')) }) return app } module.exports = OctorUptimer