jaydenpung / simple-discord-price-bots

A simple discord price bots that display crypto price and info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Discord Price Bots

This project is based on discord-stock-ticker. Instead of starting an api server that can be called to manage bots, this project lets you define the bot in a json file, and then simply run the binary file.

The goal is to keep this project as simple as possible for any rookies to modify the code easily to achieve whatever they need.

MIT License GitHub last commit GitHub stars GitHub watchers

Run

  1. Download the latest release

  2. Extract the compressed release to get files including the release binary simple-discord-price-bots

  3. Add a folder bots to where the release binary is.

  4. Download the sample.json into bots/sample.json

  5. Rename the sample.json to anyname.json, and modify the content based on Bot Configuration

  6. Run the simply-discord-price-bots and that's it!

Bot Configuration

{
  "name": "bitcoin",                                # string: name of the crypto from coingecko
  "crypto": true,                                   # bool: always true for crypto
  "ticker": "1) BTC",                               # string/OPTIONAL: overwrites display name of bot
  "color": true,                                    # bool/OPTIONAL: requires nickname
  "decorator": "@",                                 # string/OPTIONAL: what to show instead of arrows
  "currency": "aud",                                # string/OPTIONAL: alternative curreny
  "currency_symbol": "AUD",                         # string/OPTIONAL: alternative curreny symbol
  "pair": "binancecoin",                            # string/OPTIONAL: pair the coin with another coin, replaces activity section
  "pair_flip": true,                                # bool/OPTIONAL: show <pair>/<coin> rather than <coin>/<pair>
  "activity": "Hello;Its;Me",                       # string/OPTIONAL: list of strings to show in activity section
  "decimals": 3,                                    # int/OPTIONAL: set number of decimal places
  "nickname": true,                                 # bool/OPTIONAL: display information in nickname vs activity
  "frequency": 10,                                  # int/OPTIONAL: seconds between refresh
  "discord_bot_token": "xxxxxxxxxxxxxxxxxxxxxxxx"   # string: dicord bot token
}

About

A simple discord price bots that display crypto price and info

License:MIT License


Languages

Language:Go 100.0%