Skip to content

Chatbot for Lua & Defold using the approach similar to PullString.

Notifications You must be signed in to change notification settings

abadonna/chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chatbot

Chatbot for Lua & Defold using the approach similar to PullString.

Installation

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

Usage

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")

API

init(data, library)

Sample chat will be loaded if data is nil, build-in intent library will be used if library is nil

Returns bot object

bot.say(input)

return bot's answer and segue (optional)

Reference

TODO

About

Chatbot for Lua & Defold using the approach similar to PullString.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages