Skip to content

A pure Javascript framework to create conversational UIs

License

Notifications You must be signed in to change notification settings

Naimikan/guibot

Repository files navigation

version license

guibot | API

A pure Javascript framework to create conversational UIs

Resources

Compatibility

Version
Chrome 33+
Chrome for Android 59+
Firefox 29+
Firefox for Android 54+
Opera 20+
Opera Mobile 37+
Opera Mini No
Safari 7.1+
iOS Safari 8+
Internet Explorer No
IE Edge 13+
IE Mobile No
Android Browser 4.4.4+
Blackberry Browser No
UC Browser for Android 11.4+
Samsung Internet 4+
QQ Browser 1.2+
Baidu Browser 7.12

Get Started

Include the files in your index.html:

<link rel="stylesheet" href="guibot.css" />

<script src="guibot.min.js"></script>

Usage

var myChat = new guibot.Chat({
  name: 'myChat',
  users: [
    {
      name: 'Robot'
    }, {
      name: 'Me',
      isLocal: true
    }
  ]
});

myChat.say({
  message: 'Hi! I\'m a message from local user',
  userId: myChat.getLocalUser().id
});

Developing

Install dependencies, build the source files and preview

git clone https://github.com/Naimikan/guibot.git
npm install
grunt && grunt preview