Skip to main content
Deno 2 is finally here 🎉️
Learn more

workflow_codeql workflow_deno GitHub language count

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)