# hibiki

> An advanced but easy to use Discord bot framework, made in TypeScript

Latest version **2.0.0-SNAPSHOT7** (published 2017-09-11) · AGPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install hibiki
pnpm add hibiki
yarn add hibiki
bun add hibiki
```

## Health

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

Positive: no vulnerabilities.

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

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0-SNAPSHOT7 |
| Published | 2017-09-11 |
| First published | 2017-09-04 |
| Weekly downloads | 0 |
| License | AGPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 26 |
| Known vulnerabilities | 0 (+4 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 6 |
| Author | noud02 |
| Maintainers | noud02, sr229 |
| Keywords | typescript, discord, framework, bot |

## Links

- npm: https://www.npmjs.com/package/hibiki
- Repository: https://github.com/ClarityMoe/hibiki
- Homepage: https://github.com/ClarityMoe/hibiki#readme
- Issues: https://github.com/ClarityMoe/hibiki/issues
- npm.io page: https://npm.io/package/hibiki

## Dependencies (26)

- [pg](https://npm.io/package/pg.md) ^7.3.0
- [ws](https://npm.io/package/ws.md) ^3.1.0
- [uws](https://npm.io/package/uws.md) ^8.14.1
- [eris](https://npm.io/package/eris.md) github:abalabahaha/eris#dev
- [chalk](https://npm.io/package/chalk.md) ^2.1.0
- [tslib](https://npm.io/package/tslib.md) ^1.7.1
- [moment](https://npm.io/package/moment.md) ^2.18.1
- [tslint](https://npm.io/package/tslint.md) ^5.7.0
- [blocked](https://npm.io/package/blocked.md) ^1.2.1
- [erlpack](https://npm.io/package/erlpack.md) github:hammerandchisel/erlpack
- [i18next](https://npm.io/package/i18next.md) ^9.0.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.5.0
- [minimist](https://npm.io/package/minimist.md) github:noud02/minimist
- [@types/pg](https://npm.io/package/@types/pg.md) ^7.1.0
- [@types/ws](https://npm.io/package/@types/ws.md) ^3.0.2
- [node-opus](https://npm.io/package/node-opus.md) ^0.2.6
- [bufferutil](https://npm.io/package/bufferutil.md) ^3.0.2
- [typescript](https://npm.io/package/typescript.md) ^2.5.2
- [@types/node](https://npm.io/package/@types/node.md) ^8.0.28
- [eventemitter3](https://npm.io/package/eventemitter3.md) ^2.0.3
- [sodium-native](https://npm.io/package/sodium-native.md) ^1.10.3
- [@types/i18next](https://npm.io/package/@types/i18next.md) ^8.4.2
- [@types/bluebird](https://npm.io/package/@types/bluebird.md) ^3.5.10
- [recursive-readdir-sync](https://npm.io/package/recursive-readdir-sync.md) ^1.0.6
- [i18next-node-fs-backend](https://npm.io/package/i18next-node-fs-backend.md) ^1.0.0
- [@types/i18next-node-fs-backend](https://npm.io/package/@types/i18next-node-fs-backend.md) 0.0.29

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 2.0.0-SNAPSHOT7 (latest) — 2017-09-11
- 2.0.0-SNAPSHOT6 — 2017-09-11
- 2.0.0-SNAPSHOT5 — 2017-09-10
- 2.0.0-SNAPSHOT4 — 2017-09-10
- 2.0.0-SNAPSHOT3 — 2017-09-10
- 2.0.0-SNAPSHOT2 — 2017-09-10
- 2.0.1-SNAPSHOT — 2017-09-08
- 2.0.0-SNAPSHOT — 2017-09-04

## README

# Hibiki

[![Discord](https://img.shields.io/discord/251664386459041792.svg?style=flat-square)](https://discord.gg/rmMTZue) [![CodeClimate Issues](https://img.shields.io/codeclimate/issues/github/ClarityMoe/hibiki.svg?style=flat-square)](https://codeclimate.com/github/ClarityMoe/hibiki/issues) [![CodeClimate](https://img.shields.io/codeclimate/github/ClarityMoe/hibiki.svg?style=flat-square)](https://codeclimate.com/github/ClarityMoe/hibiki) [![Release](https://img.shields.io/github/release/ClarityMoe/hibiki.svg?style=flat-square)](https://github.com/ClarityMoe/hibiki/releases) [![Dependencies](https://david-dm.org/ClarityMoe/hibiki.svg?style=flat-square)](https://david-dm.org/ClarityMoe/hibiki) [![CircleCI](https://img.shields.io/circleci/project/github/ClarityMoe/hibiki.svg?style=flat-square)](https://circleci.com/gh/ClarityMoe/hibiki) [![AppVeyor](https://img.shields.io/appveyor/ci/noud02/hibiki.svg?style=flat-square)](https://ci.appveyor.com/project/noud02/hibiki/) [![NPM Version](https://img.shields.io/npm/v/hibiki.svg?style=flat-square)](https://npmjs.com/package/hibiki) [![NPM Downloads](https://img.shields.io/npm/dt/hibiki.svg?style=flat-square)](https://npmjs.com/package/hibiki)

A Powerful but easy to use Discord bot framework

## Installation

```bash
$ npm i hibiki --save
# Installs the framework

```

## Usage

```ts
import { Shard as Hibiki } from "hibiki";

const bot: Hibiki = new Hibiki("token", {
    // ...
});

bot.connect();

bot.on("ready", () => {
    bot.init();
    console.log("Ready!");
});

```

More examples can be found in /examples

## Database

Run these commands to set up the database.

```bash

# Install Postgres
$ sudo pacman -S postgresql
# or
$ sudo apt-get install postgresql
# I assume you know enough about your package manager to install postgresql
# not gonna list them all, sorry

# Now follow this on how to get postgres ready for use
# https://wiki.archlinux.org/index.php/PostgreSQL#Installing_PostgreSQL

$ createdb hibiki
# Create the database, you can change 'hibiki' to whatever you want your db name to be

$ psql hibiki
# When you're in, please run the commands below this code block

```

```sql

-- Create the 'guilds' table

CREATE TABLE guilds (
    id          text,
    prefixes    text[],
    name        text
);

-- Create an unique index

CREATE UNIQUE INDEX IN guilds (id);

-- Create the 'users' table

CREATE TABLE users (
    id              text,
    discriminator   text,
    username        text,
    blocked         boolean
);

-- Create an unique index again

CREATE UNIQUE INDEX IN users (id);

-- Check if the tables are there

SELECT * FROM guilds;
SELECT * FROM users;

```

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