fluxnode-multitool icon indicating copy to clipboard operation
fluxnode-multitool copied to clipboard

[QUESTION] Make automation for Telegram Alert

Open Roken120 opened this issue 3 years ago • 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

Roken120 avatar Sep 18 '22 10:09 Roken120

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

XK4MiLX avatar Sep 18 '22 10:09 XK4MiLX

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

Roken120 avatar Sep 18 '22 10:09 Roken120

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

XK4MiLX avatar Sep 18 '22 11:09 XK4MiLX

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 :)

XK4MiLX avatar Sep 18 '22 11:09 XK4MiLX