dmitrizzle / chat-bubble

Simple chatbot UI for the Web with JSON scripting 👋🤖🤙
MIT License
579 stars 171 forks source link

Remember & recall chat interactions [WIP] #47

Closed dmitrizzle closed 6 years ago

dmitrizzle commented 6 years ago

Some mods made to the script that save bot and user interactions to localStorage to be recalled later.

TODO's:

screen shot 2018-01-13 at 11 36 34 pm
dmitrizzle commented 6 years ago

One more task for this PR that's sort of (but not really) related. chat-bubble has module exports that could be utilized with ES6 setup. In this PR I've added a small fix that ensures that the scripts aren't giving errors on ES5 browsers. This needs to be tested and if it works we can close #14

dmitrizzle commented 6 years ago

Seems to work! history

dmitrizzle commented 6 years ago

~There's still an issue that two bubbles appear at once, with no delay.~ Fixed.

dmitrizzle commented 6 years ago

Added localStorage check function that warns users when they have no environment set-up or have server/browsers restrictions that forbid them from storing localStorage objects.