Skip to content
This repository has been archived by the owner on Feb 14, 2018. It is now read-only.
/ hibiki Public archive

Hibiki, A Powerful but easy to use Discord bot framework.

License

Notifications You must be signed in to change notification settings

ClarityMoe/hibiki

Repository files navigation

Hibiki

Discord CodeClimate Issues CodeClimate Release Dependencies CircleCI AppVeyor NPM Version NPM Downloads

A Powerful but easy to use Discord bot framework

Installation

$ npm i hibiki --save
# Installs the framework

Usage

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.

# 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
-- 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;

About

Hibiki, A Powerful but easy to use Discord bot framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published