rocket.chat app to convert between cryptocurrencies using the cryptocompare API
- enable development mode in Administration > General > Apps
- Using
rc-apps deploy
deploy the app to your dev server - You will need to enter a cryptocompare API key into the app settings
get one free from min-api.cryptocompare.com
There are 2 command which this app registers:
-
/cryptoprice
fetches the price for a given symbol e.g./cryptoprice BTC
-
you can fetch multiple prices for a symbol e.g.
/cryptoprice BTC in XMR USD
... -
/cryptoconvert
converts between to currencies for example/cryptoconvert 1 BTC to XMR
A Dockerfile and docker-compose are provided.
Build the docker image and run it to deploy to your server:
docker build -t rocketchatapp_cryptovert . && docker run -it --rm -e URL=YOUR_SERVER -e USERNAME=YOUR_USERNAME -e PASSWORD=YOUR_PASSWORD rocketchatapp_cryptovert
Build the docker image and run docker-compose to deploy to your server:
docker build -t rocketchatapp_cryptovert . && docker-compose run --rm -e URL=YOUR_SERVER -e USERNAME=YOUR_USERNAME -e PASSWORD=YOUR_PASSWORD rocketchatapp_cryptovert