Shell script for Telegram bot to keep you in touch with running console commands.
Create local credentials file and fill it with generated bot API Token and target user id:
cp .env .env.local
After deploy, run your commands as:
/usr/bin/bash /path/to/notifyme/run.sh php bin/magento indexer:reindex
NOTE: To receive messages, you have to write at least one message to your bot (have chat available).
For more comfortable usage add this line to ~/.bash_aliases
file:
alias NM="/usr/bin/bash /path/to/notifyme/run.sh"
NOTE: Do not forget to replace /path/to/notifyme/
with your real path.
After reopening the terminal, aliased command will be available as:
NM php bin/magento indexer:reindex
For Python implementation check notifyme-py repo