Skip to content

Latest commit

 

History

History
101 lines (64 loc) · 2.63 KB

README.md

File metadata and controls

101 lines (64 loc) · 2.63 KB

cryptobot-slack-telegram

Cryptobot is here to help you with getting info about the cryptocurrencies 💰

forthebadge

documentation

logo_.png

Step by Step Implementation [DONE ✅]:

clone the repository and get into cryptobot-slack directory and .

git clone https://github.com/Aravindakrishnan/cryptobot-slack-telegram

create a .env file and put essential API keys

BOT_TOKEN=XXXXXXX-XXXXXXXXX-XXXXXXXX
SIGNING_SECRET_TOKEN=XXXXXXXXXXX
IMGBB_API_KEY=XXXXXXXXXXX
CONVERT_API_KEY=XXXXXXXXXXX

API resources are ,

Slack_API

Imgbb_API

Currency_Converter_API

Installation of ngrok

download_ngrok

Running the bot

  • step1 : create a bot app in slack and add bot to your workspace.

  • step2 : copy paste needed API_KEYS in .env file.

  • step3 : install required libs and run bot.py python script.

pip install -r requirements.txt
python3 bot.py
  • step4 : create a ngrok server
ngrok http [PORT]
  • step5 : copy https:// link generated by ngrok.

  • step6 : Paste it in event_subscriptions and slash_command.

  • step7 : head towards installAPP and reinstall the app.

Usage : Slack Bot Methods

  • /getprice [coin_name or coin_symbol] - returns the current price of the coin default : USD

  • /getprice [coin_name or coin_symbol] [fiat_name] - returns the current price of the coin in fiat.

  • /showdetail [coin_name or coin_symbol] - returns the complete detail about the selected cryptocurrency.

  • /showdetail [coin_name or coin_symbol] - returns the complete detail about the current cryptocurrency with specific fiat price.

  • /showcandle [coin_name or coin_symbol] - returns the candle graph snapshot of the particular coin.

  • /showcandle [coin_name or coin_symbol] [1m,3m,5m,15m,30m,1h,2h,4h,6h,8h,12h,1d,3d,1w,1M] - return the candle graph snapshot of the particular coin like 1day candle_graph , 7days candle_graph etc.,

Examples :

/getprice bitcoin
/getprice bitcoin inr
/getprice btc
/showdetail bitcoin
/showdetail btc inr
/showcandle bitcoin
/showcandle btc 1y

Sample Outputs

/getprice

getprice.png

/showdetail

showdetail.png