Hibiki
A Powerful but easy to use Discord bot framework
Installation
$ npm i hibiki --save# Installs the framework
Usage
; ; bot.connect; bot.on"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 ( id text, prefixes text[], name text); -- Create an unique index guilds (id); -- Create the 'users' table ( id text, discriminator text, username text, blocked boolean); -- Create an unique index again users (id); -- Check if the tables are there SELECT * FROM guilds;SELECT * FROM users;