Use this utility to notify you on Telegram when your long running command finishes running.
-
Copy the
afk
file into your bin path (eg./usr/local/bin
)cp afk /usr/local/bin/
-
Get a Telegram bot. You will need to get the
bot_token
and a recipientchat_id
. -
Add a
.afkconfig
file to your home directory with this content:AFK_BOT_TOKEN=<the Telegram bot token from the @botfather> RECIPIENT_ID=<chat_id of recipient - either a person or a group>
Note:
afk
will first look in your current folder for a.afkconfig
file before looking inside$HOME
. -
Prepend
afk
to your command:afk <command>
Example:
afk npm test
-
Telegram messages should show up:
- cURL (in the command line)
MIT