Use this utility to notify you on Telegram when your long running command finishes running.
-
Copy the
afkfile into your bin path (eg./usr/local/bin)cp afk /usr/local/bin/ -
Get a Telegram bot. You will need to get the
bot_tokenand a recipientchat_id. -
Add a
.afkconfigfile 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:
afkwill first look in your current folder for a.afkconfigfile before looking inside$HOME. -
Prepend
afkto your command:afk <command>
Example:
afk npm test -
Telegram messages should show up:
- cURL (in the command line)
MIT


