losparviero / downi

Indicate your users of downtime in Telegram!

Home Page:https://npmjs.com/downbot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Downtime Telegram Bot

Indicate your users of downtime in Telegram!


Deploy with Vercel

Vercel instructions.

Note after deploying you have to set webhook.

Use the following webhook url:

https://downbot-<your-vercel-username>.vercel.app/api/bot

Or just use @hooktelebot.


Brief Note

Whenever you start work or maintenance on your bot just call npx downbot to notify your users in the meanwhile.

If you use a .env file just call downbot in the same directory as your bot and it'll use that. No need to even set env vars.

The bot replies to all commands & messages.


Usage

If installed:

downbot

For temporary use:

npx downbot

Note: You'll have to keep the terminal running for the duration.


Make sure env vars are set in your working directory.

On Mac / Linux

touch .env && { echo "BOT_TOKEN="; } >> .env && nano .env

On Windows

type nul > .env && echo BOT_TOKEN= >> .env && notepad .env

Install

npm i -g downbot

Uninstall

npm uninstall downbot

License

AGPL 3.0 ©️ Zubin

About

Indicate your users of downtime in Telegram!

https://npmjs.com/downbot

License:GNU Affero General Public License v3.0


Languages

Language:JavaScript 99.5%Language:Shell 0.5%