;global
, ;price [symbol]
, ;info [symbol]
& more coming...
Run npm install
inside the source folder to install dependencies from package.json.
Set your Discord bot token in auth.json.
Set your Coinmarketcap API key in cmc-info
's constructor call.
Example (from bot.js):
const cmc_api = require("cmc-info");
let cmc = new cmc_api("API_KEY");
Run with node bot.js
.
Discord API: discord.js
Coinmarketcap API: cmc-info