Skip to content

Latest commit

 

History

History
70 lines (43 loc) · 1.52 KB

README.md

File metadata and controls

70 lines (43 loc) · 1.52 KB

catsbot for Cosmos Cats

Cosmos cats community https://t.me/cosmoscats

Deployed version https://t.me/cosmos_whalecat

Run script

  1. Run yarn install

  2. Rename config.example.json to config.json and specify env to prod, your telegram bot token and channel to send notifications

    • Set env to any other value if you don't want to send notifications to telegram. Useful on switching environments.

{
    "env": "prod",
    "token": "1231231212:Qwertyuiopasdfghjkl;xcvbnm1234567890",
    "channel": "@username",
    ...
}

1.1 - You can assign custom amount for each denom by adding

"msgAmounts": {
    "msgSwapExactAmountIn": 1000000000000000
}

Supported msg types

    - msgSwapExactAmountIn
    - msgDelegate    
    - msgExecuteContract      
    - msgSend     
    - msgUndelegate
  1. Run pm2 start ecosystem.config.js to run script on all networks
  • If you want to start solo network, please add arg with name specified in config

    pm2 start ecosystem.config.js --network=cosmos

  • If your script was offline for a long time, you can skip checking missed blocks

    pm2 start ecosystem.config.js --network=cosmos --clean=true

Monitoring

  • Show stats

    pm2 list

  • Show logs stored in ~/.pm2/logs/

    pm2 logs

Roadmap

  • Osmosis whale swaps
  • Custom amounts for each message on each denom
  • Show Prices in USD
  • Add Secret network
  • Add IBC-txs