NOTE: CURRENTLY ONLY SUPPORTS LND, BUT THERE ARE PLANS TO SUPPORT OTHER IMPLEMENTATIONS AS WELL IF PEOPLE FIND THIS USEFULL
\help
lncli bakemacaroon uri:/lnrpc.Lightning/GetInfo
\start
command with the tuple (<lightning_node_tor_address>,<macaroon>)
,
ex:
(https://wkdirllfgoofflfXXXXXXXXXXXXXXXXXXXXXXXXXXXXJJJJJJJJJJJJ.onion:8080, XXXXXXXXXXX...)
sudo apt install build-essential
sudo apt-get install libssl-dev pkg-config autoconf
Then set the binary up as a service using the following configuration in a file name lightning-sentinel.service: ` [Unit] Description=Telegram Bot monitoring lightning nodes After=network.target StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=1
User=root
ExecStart=/root/lightning-sentinel/target/debug/lightning-sentinel
[Install]
WantedBy=multi-user.target
`
/etc/systemd/system
, then run systemctl start lightning-sentinel
Proceed to register with the bot the same way as if you were using the existing bot
*NOTE: DO NOT HAVE THIS RUNNING ON THE SAME POWER SOURCE AS WHERE YOUR NODE IS RUNNING (WOULD DEFEATE THE PURPOSE OF THE BOT) *