jbs-live-chat

0.0.1 • Public • Published

JBS-Live-Chat


THIS PACKAGE IS NOT READY FOR USE.


Description

The JumpButton Studio Live Chat module was design to create an Easy-to-use Live chat ticketing system with your Node.JS project.

Updates

Version 0.0.1
  • The basic version has been released.
  • Database tables designed.
  • First-Time Setup functions working.

How To Use

The first time using the plugin you need to just have an empty/pre-existing database available. Right now the only supported database is MySQL. This will change in future updates.


Basic Usage

let express = require("express");
let app = new express();

let liveChat = require("./live-chat-module/live-chat.js")(app,{
	dbuser: "jbs",
	dbpass: "chat",
	dbhost: "jumpbuttonnorth.asuscomm.com",
	dbname: "jbs_live_chat"
},chatReadyCallback);

// This is ONLY call on first time-setup.
function chatReadyCallback(){
	// Add Category AKA Chat Room
	liveChat.addCategory("Support Department",function(err,category_id){
		if(err){
			console.error("Server",err.message);
		}else{
			liveChat.addStaff(category_id,"Matthew A","matthew@jumpbuttonstudio.com");
		}
	});
}

Readme

Keywords

none

Package Sidebar

Install

npm i jbs-live-chat

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • lycrios