ALEXA8596 / CryptoTracker

got bored one day, got inspired, and made this bot in like 30 mins lol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crypto Price Tracker

A Discord Bot that tracks crypto using the CoinGecko API

  • Fetches coin price every 60 seconds and sets it as its nickname in each server

Features

  • Automatically changes nickname in each server to match live price (from CoinGecko API)
  • Multiple instances can be run through just one app

Installation

  1. Download Zip file from github and unzip (or use the command line)
  git clone https://github.com/ALEXA8596/CryptoTracker
  cd CryptoTracker
  1. Install Dependencies
  npm install
  1. Rename config.example.json to config.json and input your discord token for each coin
{
    "coinName": {
        "token": "discord token of bot"
    },
    "coinName2": {
        "token": "discord token of bot"
    }
}
  1. Run
  node index.js

Configuration

  • You are able to customize the coins that are tracked through this app
  • Add or delete specific coins to the config.json file
  • Format:
{
    "coinName": {
        "token": "token"
    }
}
  • replace "coinName" with the coin's name found here and "token" with the discord bot token
    • Ex: $USDT is referenced as "tether" in the coin gecko api, so the config would look like this:
    {
        "tether": {
            "token": "discord token"
        }
    }

Inspiration

  • the r/CryptoCurrency discord

About

got bored one day, got inspired, and made this bot in like 30 mins lol


Languages

Language:JavaScript 100.0%