This chatbot sells one asset for another via conditional payment smart contracts. It is unidirectional sale only, the bot doesn't offer the reverse exchange.
By default, it sells blackbytes for bytes but you can customize it to sell your token by editing the conf.
The exchange rate is fixed and set in the conf.
Install node.js, clone the repository, then run:
npm install
node db_import.js
Set testnet environment variable to 1, you can do it by copying the .env.testnet example file:
cp .env.testnet .env
node sale.js 2>errlog
Since the bot includes a headless wallet, you can chat with it, see its balance, and withdraw funds.
See the settings conf.js. The ones you would probably want to change are exchangeRate
, assetToSell*
, and assetToReceive*
. To override them, add the corresponding keys in your conf.json
(see core documentation about conf).
TOR is recommended since you are keeping your private keys online and don't want your IP address to be known. See core documentation about TOR.