Skip to content

Installation troubleshooting

adamant-al edited this page Jun 19, 2023 · 5 revisions

If you have trouble running the bot, try this:

  • Check whether Mongo DB is installed with mongod -v command. If your terminal says there's no command like that, try installing Mongo DB again.
  • Check whether Node.js is installed with node -v command. If your terminal says there's no command like that, try installing Node.js again.
  • Check whether or not you have node_modules folder in the bot's directory. If not, run npm install in the terminal.
  • Check every field required to fill by you in the config. For your convenience, we attach a sample of the config:
{
  /**
    The bot's secret passphrase. Create separate ADM account for the bot.
    Bot's ADM address will correspond this passphrase.
    You'll contact this address via ADAMANT Messenger to manage the bot.
  **/
  "passPhrase": "someone clog random april word script guitar prison street public tornado hunt",

  /**
    List of nodes to connect to ADAMANT blockchain.
    It ensures secure communication with the bot.
    If one become unavailable, bot will choose live one.
  **/
  "node_ADM": [
    "https://bid.adamant.im",
    "http://localhost:36666",
    "https://endless.adamant.im",
    "https://clown.adamant.im",
    "https://unusual.adamant.im",
    "https://debate.adamant.im",
    "http://23.226.231.225:36666",
    "http://78.47.205.206:36666",
    "https://lake.adamant.im",
    "https://sunshine.adamant.im"
  ],

  /** Socket connection is recommended for better communication experience **/
  "socket": true,

  /** Choose socket connection protocol, "ws" or "wss" depending on your server **/
  "ws_type": "ws",

  /** List of ADAMANT InfoServices for catching exchange rates **/
  "infoservice": [
    "https://info.adamant.im"
  ],

  /** ADAMANT accounts to accept commands from. Commands from other accounts will not be executed. **/
  "admin_accounts": [
    "U48216433027638127388"
  ],

  /** Notify non-admins that they are not admins. If false, bot will be silent. **/
  "notify_non_admins": false,

  /** List of supported exchanges **/
  "exchanges": [
    "P2PB2B",
    "Azbit",
    "Binance",
    "StakeCube",
    "Bitfinex"
  ],

  /** Exchange to work with. Case insensitive. **/
  "exchange": "Bitfinex",

  /** Pair to trade in regular Base/Quote format **/
  "pair": "ADM/USDT",

  /** Exchange's account API key for connection **/
  "apikey": "d2157308c69053916a80432287647112347",

  /** Exchange's account API secret for connection **/
  "apisecret": "b4a34e517e445445664e663037211889f0",

  /** Exchange's account trade password (if required by exchange) **/
  "apipassword": "",

  /** How to reply to admin in-chat, if first unknown command received **/
  "welcome_string": "Hi! 😊 I'm ADM/USDT@Bitfinex CoinOptimus trade bot. ℹ️ Learn more on https://github.com/Adamant-im/adamant-coinoptimus or type **/help**.",

  /** Bot's name for notifications **/
  "bot_name": "ADM/USDT@Bitfinex CoinOptimus Bot",

  /** ADAMANT addresses for notifications and monitoring. Optional. **/
  "adamant_notify": ["U2763812738848216433"],

  /** ADAMANT addresses for priority notifications. Optional. **/
  "adamant_notify_priority": [],

  /** Slack keys for notifications and monitoring. Optional. **/
  "slack": ["https://hooks.slack.com/services/.."],

  /** Slack keys for priority notifications. Optional. **/
  "slack_priority": [],

  /**
    The software will use verbosity according to log_level.
    It can be none < error < warn < info < log.
  **/
  "log_level": "log",

  /**
    Port for getting debug info.
    Do not set for live bots, use only for debugging.
    Allows to get DBs records like http://ip:port/db?tb=incomingTxsDb
  **/
  "debug_api": false,

  /** Minimal amount of USDT to confirm buy/sell/fill commands **/
  "amount_to_confirm_usd": 100
}
Clone this wiki locally