personality.go 897 B

12345678910111213
  1. package eliza
  2. type Personality struct {
  3. Name string `json:"name" yaml:"name"`
  4. Version string `json:"version,omitempty" yaml:"version,omitempty"`
  5. Commands map[string][]string `json:"commands,omitempty" yaml:"commands,omitempty"`
  6. Introductions []string `json:"introductions,omitempty" yaml:"introductions,omitempty"`
  7. Goodbyes []string `json:"goodbyes,omitempty" yaml:"goodbyes,omitempty"`
  8. Psychobabble map[string][]string `json:"psychobabble,omitempty" yaml:"psychobabble,omitempty"`
  9. DefaultResponses []string `json:"defaultresponses,omitempty" yaml:"defaultresponses,omitempty"`
  10. QuitResponses []string `json:"quitresponses,omitempty" yaml:"quitresponses,omitempty"`
  11. ReflectedWords map[string]string `json:"reflectedwords,omitempty" yaml:"reflectedwords,omitempty"`
  12. }