# disnode-lite

> A lightweight Discord NodeJS API build from the Disnode Lib. This library only contains the Discord API, a command parser, and functions to communicate with the Disnode Platform.

Latest version **0.0.5** (published 2017-09-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install disnode-lite
pnpm add disnode-lite
yarn add disnode-lite
bun add disnode-lite
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2017-09-11 |
| First published | 2017-08-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 (+27 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alex Carter |
| Maintainers | disnodeteam |
| Keywords | discord |

## Links

- npm: https://www.npmjs.com/package/disnode-lite
- Repository: https://github.com/DisnodeTeam/disnode-lite
- Homepage: https://github.com/DisnodeTeam/disnode-lite#readme
- Issues: https://github.com/DisnodeTeam/disnode-lite/issues
- npm.io page: https://npm.io/package/disnode-lite

## Dependencies (6)

- [ws](https://npm.io/package/ws.md) ^3.1.0
- [async](https://npm.io/package/async.md) ^2.5.0
- [axios](https://npm.io/package/axios.md) ^0.16.2
- [cali-db](https://npm.io/package/cali-db.md) 0.0.4
- [ink-docstrap](https://npm.io/package/ink-docstrap.md) ^1.3.0
- [disnode-logger](https://npm.io/package/disnode-logger.md) ^0.1.1

## Recent versions

- 0.0.5 (latest) — 2017-09-11
- 0.0.4 — 2017-09-11
- 0.0.3 — 2017-09-11
- 0.0.2 — 2017-09-09
- 0.0.1 — 2017-08-11

## README

# disnode-lite
A lightweight Discord NodeJS API build from the Disnode Lib. This library only contains the Discord API. For extras such as **server count uploading** **command parser** **youtube player** and more please see `disnode-extra`

# Docs
Documentation is avalible at https://lite.disnodeteam.com

# Example Bot

```javascript
var DisnodeLite = require("disnode-lite");

var shardID = 0;
var maxShards = 1;
if(process.env.INSTID){
  console.log("Found PM2 Instancing");
  shardID = process.env.INSTID;
  maxShards = process.env.instances;
}
console.log("Sid: " + shardID + " mx: " + maxShards);

var bot = new DisnodeLite({
  key: "", 
  sharding: [shardID,maxShards],
  cacheSettings: {
    cacheChannels: true,
    cacheMembers: true
  }
});


bot.Connect();

bot.on("ready", ()=>{
  console.log("Ready!");
})

bot.on("message",({message, channelID})=>{

})

bot.on("cache_bot_update", (data)=>{
  console.log(data);
})

```

---
_Source: https://npm.io/package/disnode-lite · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
