RunOnFlux/fluxnode-multitool

[QUESTION] Make automation for Telegram Alert

Roken120 opened this issue · 4 comments

Question

Hello,
How i can automate the multitoolbox script for change tx id, identity, output, zelid and for adding telegram alert.

Category

Option 8

Please tick the boxes

  • new install option 6 after that option 2
  • exist install option 6 ( or exist install config) and option 15

Hello,
I know how i need to make but i want to automatise with cli if is possible
Like command txid:mynewtx identify:mynewidentify ...

you can automate it by create install_conf.json
example:

  1. echo "{}" > install_conf.json
  2. jq -r --arg key 'zelid' --arg value "1HWjQ8S3MyzV6EbtDMEcpHm31parya522N" '.[$key]=$value' install_conf.json

here is little script that can help

file: config_creator.sh
#!/bin/bash if [[ ! -f /home/$USER/install_conf.json ]]; then echo "{}" > install_conf.json fi echo "$(jq -r --arg key "$1" --arg value "$2" '.[$key]=$value' install_conf.json)" > install_conf.json
usage:
./config_creator.sh key value
example:
./config_creator.sh zelid 1HWjQ8S3MyzV6EbtDMEcpHm31parya522M

after create install_conf use option 15 :)