discord-db
v1.0.2
Published
Discord Bot Database
Downloads
16
Readme
Discord DB
Discord Bot Database Manager
How To Use
- Require package
var DiscordDB=require("discord-db");
- Create database manager
var GuildConfig=new DiscordDB.GuildConfig(guild_id,{"prefix":"!!"});
var UserConfig=new DiscordDB.UserConfig(user_id,{"prefix":"USER>"});
var GenericDatabase=new DiscordDB.Database("generic","./data/",{"some":"data"});
// ^ Optional ^
- Set data
GuildConfig.set("prefix","??");
- Get data
console.log(GuildConfig.get("prefix"));
- Save data
GuildConfig.save();