package
Version:
v0.0.0-...-84ff7b8
Opens a new window with list of versions in this module.
Published: Nov 26, 2018
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package react returns a random reaction parsed from a json file, see example json file for structure
Match tests to see if a string matches a listed string
Respond returns a random response from the first reaction to match the generated regex
Item is the match text and possible responses for a reacion
type React struct {
Items []Item
}
React contains reactions from a reactions.json file
Source Files
¶
Click to show internal directories.
Click to hide internal directories.