Cryptocompare-harmony-extension is an easy to use Harmony Bot Extenstion which offers multiple commands to interact with the CryptoCompare API
Repository
Current version released
4 years ago
Versions
Some CryptoCompare functions for your Deno-based Harmony Discord Bot
Usage
You will have to create a .env file in your root directory of your harmony bot to use this extension. Inside the .env file you will have to include your API_KEY received from registering an account on CryptoCompare.
API_KEY=Example
A minimal example of using this extension:
import { CommandClient, Intents } from 'https://deno.land/x/harmony@v2.5.1/mod.ts'
import { CryptoCompareExt } from 'https://deno.land/x/cryptocompare_harmony_extension/mod.ts'
const client = new CommandClient({
prefix: '!'
})
// load the extension
client.extensions.load(CryptoCompareExt)
client.on('ready', () => {
console.log(`Ready! User: ${client.user?.tag}`)
})
client.connect(BOT_TOKEN, Intents.None)