Skip to content

losparviero/downi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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