Skip to content

Project on hold until Hiven API v1.0 is moved from alpha to stable | Rewrite in Typescript is in the plans... | Framework for creating bots on Hiven

License

Notifications You must be signed in to change notification settings

robjmorrissey/hiven.js

 
 

Repository files navigation

Hiven.js

Follow on twitter Follow Hiven.js on twitter NPM Package Version NPM Bundle MIN Size GitHub License GitHub Code Size GitHub Repo Size

Client library for Hiven, used to make chat bots and interact with the API.

This is currently a work in-progress.

This was originally created to be similar to discord.js and will probably still inherit some of it's features in the future.

Install instructions

Installation via NPM

npm install hiven

Installation via Yarn

yarn install hiven


IMPORTANT: In order to use this library with a user account you need to instantiate your client with these settings.

const { Client } = require('hiven');
const client = new Client({ type: 'user' });

client.on('init', () => {
  console.log("Connected to Hiven Swarm!")
});

client.on('message', (msg) => {
  console.log(`Received message: ${msg.content} from ${msg.author.username}`)
});

client.connect("your token")

About

Project on hold until Hiven API v1.0 is moved from alpha to stable | Rewrite in Typescript is in the plans... | Framework for creating bots on Hiven

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • TypeScript 100.0%