Chatbot for Lua & Defold using the approach similar to PullString.
Add this project as a Defold library dependency. Open your game.project file and in the dependencies field under project add: https://github.com/abadonna/chatbot/archive/master.zip
This library use same entities as PullString, so I recommend to check PullString docs first. What features are supported:
- Rules
- Intents
- Contractions
- Fallbacks
- Conditions
- State
- Interjections and Segues
- Pattern Matching for numbers
- Polarity detection
Chat data is defined via lua modules.
chat = require "chatbot.bot"
data = require "sample"
bot = chat.init(data)
....
answer, segue = bot.say("optional input")
Sample chat will be loaded if data is nil, build-in intent library will be used if library is nil
Returns bot object
return bot's answer and segue (optional)
TODO