├── .gitignore ├── .ruby-version ├── CODE_OF_CONDUCT.md ├── Gemfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── bin ├── console ├── setup └── wit ├── examples ├── bot.rb ├── bot │ └── bot.rb ├── hash.rb ├── hash_with_bot.rb ├── helpers │ └── helpers.rb ├── simple.rb └── thread.rb ├── lib ├── generators │ └── wit_bot │ │ ├── bot │ │ ├── USAGE │ │ ├── bot_generator.rb │ │ └── templates │ │ │ └── bot.rb.erb │ │ ├── clear_conversations_job │ │ ├── USAGE.txt │ │ ├── clear_conversations_job_generator.rb │ │ └── templates │ │ │ ├── clock.rb │ │ │ └── job.rb │ │ ├── message_bus │ │ ├── USAGE │ │ ├── message_bus_generator.rb │ │ └── templates │ │ │ ├── job.rb.erb │ │ │ ├── message_bus_controller.rb.erb │ │ │ └── message_bus_listener.rb.erb │ │ ├── model │ │ ├── USAGE │ │ ├── model_generator.rb │ │ └── templates │ │ │ ├── clear_conversations.txt │ │ │ └── model.rb.erb │ │ └── setup │ │ ├── USAGE │ │ ├── setup_generator.rb │ │ └── templates │ │ └── initializer.rb ├── wit_bot.rb └── wit_bot │ ├── bot │ ├── base.rb │ ├── conversation │ │ ├── base.rb │ │ └── participant.rb │ └── models │ │ └── message.rb │ ├── configuration.rb │ ├── errors │ ├── low_confidence_error.rb │ ├── wit_bot_error.rb │ └── wit_error.rb │ ├── models │ ├── context.rb │ ├── context_entities.rb │ ├── message.rb │ ├── message_thread.rb │ ├── outcome.rb │ ├── state.rb │ └── wit │ │ ├── base.rb │ │ ├── entity.rb │ │ ├── entity │ │ ├── entity_model.rb │ │ └── entity_value.rb │ │ ├── expression.rb │ │ ├── intent.rb │ │ └── intent │ │ ├── intent_expressions.rb │ │ └── intent_meta.rb │ ├── requests │ ├── message_request.rb │ ├── models │ │ ├── entities_request.rb │ │ ├── expressions_request.rb │ │ ├── intents_request.rb │ │ └── wit_model_request.rb │ ├── wit_request.rb │ └── wit_request_sender.rb │ └── version.rb ├── spec ├── configuration_spec.rb ├── entity_model_proxy_spec.rb ├── helpers │ └── helper.rb ├── message_spec.rb ├── message_thread_spec.rb ├── outcome_spec.rb ├── state_spec.rb └── wit_bot_spec.rb └── wit_bot.gemspec /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/.gitignore -------------------------------------------------------------------------------- /.ruby-version: -------------------------------------------------------------------------------- 1 | 2.2.4 2 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/Rakefile -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/bin/console -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/bin/setup -------------------------------------------------------------------------------- /bin/wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/bin/wit -------------------------------------------------------------------------------- /examples/bot.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/examples/bot.rb -------------------------------------------------------------------------------- /examples/bot/bot.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/examples/bot/bot.rb -------------------------------------------------------------------------------- /examples/hash.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/examples/hash.rb -------------------------------------------------------------------------------- /examples/hash_with_bot.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/examples/hash_with_bot.rb -------------------------------------------------------------------------------- /examples/helpers/helpers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/examples/helpers/helpers.rb -------------------------------------------------------------------------------- /examples/simple.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/examples/simple.rb -------------------------------------------------------------------------------- /examples/thread.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/examples/thread.rb -------------------------------------------------------------------------------- /lib/generators/wit_bot/bot/USAGE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/generators/wit_bot/bot/USAGE -------------------------------------------------------------------------------- /lib/generators/wit_bot/bot/bot_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/generators/wit_bot/bot/bot_generator.rb -------------------------------------------------------------------------------- /lib/generators/wit_bot/bot/templates/bot.rb.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/generators/wit_bot/bot/templates/bot.rb.erb -------------------------------------------------------------------------------- /lib/generators/wit_bot/clear_conversations_job/USAGE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/generators/wit_bot/clear_conversations_job/USAGE.txt -------------------------------------------------------------------------------- /lib/generators/wit_bot/clear_conversations_job/clear_conversations_job_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/generators/wit_bot/clear_conversations_job/clear_conversations_job_generator.rb -------------------------------------------------------------------------------- /lib/generators/wit_bot/clear_conversations_job/templates/clock.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/generators/wit_bot/clear_conversations_job/templates/clock.rb -------------------------------------------------------------------------------- /lib/generators/wit_bot/clear_conversations_job/templates/job.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/generators/wit_bot/clear_conversations_job/templates/job.rb -------------------------------------------------------------------------------- /lib/generators/wit_bot/message_bus/USAGE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/generators/wit_bot/message_bus/USAGE -------------------------------------------------------------------------------- /lib/generators/wit_bot/message_bus/message_bus_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/generators/wit_bot/message_bus/message_bus_generator.rb -------------------------------------------------------------------------------- /lib/generators/wit_bot/message_bus/templates/job.rb.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/generators/wit_bot/message_bus/templates/job.rb.erb -------------------------------------------------------------------------------- /lib/generators/wit_bot/message_bus/templates/message_bus_controller.rb.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/generators/wit_bot/message_bus/templates/message_bus_controller.rb.erb -------------------------------------------------------------------------------- /lib/generators/wit_bot/message_bus/templates/message_bus_listener.rb.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/generators/wit_bot/message_bus/templates/message_bus_listener.rb.erb -------------------------------------------------------------------------------- /lib/generators/wit_bot/model/USAGE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/generators/wit_bot/model/USAGE -------------------------------------------------------------------------------- /lib/generators/wit_bot/model/model_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/generators/wit_bot/model/model_generator.rb -------------------------------------------------------------------------------- /lib/generators/wit_bot/model/templates/clear_conversations.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/generators/wit_bot/model/templates/clear_conversations.txt -------------------------------------------------------------------------------- /lib/generators/wit_bot/model/templates/model.rb.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/generators/wit_bot/model/templates/model.rb.erb -------------------------------------------------------------------------------- /lib/generators/wit_bot/setup/USAGE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/generators/wit_bot/setup/USAGE -------------------------------------------------------------------------------- /lib/generators/wit_bot/setup/setup_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/generators/wit_bot/setup/setup_generator.rb -------------------------------------------------------------------------------- /lib/generators/wit_bot/setup/templates/initializer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/generators/wit_bot/setup/templates/initializer.rb -------------------------------------------------------------------------------- /lib/wit_bot.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot.rb -------------------------------------------------------------------------------- /lib/wit_bot/bot/base.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/bot/base.rb -------------------------------------------------------------------------------- /lib/wit_bot/bot/conversation/base.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/bot/conversation/base.rb -------------------------------------------------------------------------------- /lib/wit_bot/bot/conversation/participant.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/bot/conversation/participant.rb -------------------------------------------------------------------------------- /lib/wit_bot/bot/models/message.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/bot/models/message.rb -------------------------------------------------------------------------------- /lib/wit_bot/configuration.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/configuration.rb -------------------------------------------------------------------------------- /lib/wit_bot/errors/low_confidence_error.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/errors/low_confidence_error.rb -------------------------------------------------------------------------------- /lib/wit_bot/errors/wit_bot_error.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/errors/wit_bot_error.rb -------------------------------------------------------------------------------- /lib/wit_bot/errors/wit_error.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/errors/wit_error.rb -------------------------------------------------------------------------------- /lib/wit_bot/models/context.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/models/context.rb -------------------------------------------------------------------------------- /lib/wit_bot/models/context_entities.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/models/context_entities.rb -------------------------------------------------------------------------------- /lib/wit_bot/models/message.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/models/message.rb -------------------------------------------------------------------------------- /lib/wit_bot/models/message_thread.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/models/message_thread.rb -------------------------------------------------------------------------------- /lib/wit_bot/models/outcome.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/models/outcome.rb -------------------------------------------------------------------------------- /lib/wit_bot/models/state.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/models/state.rb -------------------------------------------------------------------------------- /lib/wit_bot/models/wit/base.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/models/wit/base.rb -------------------------------------------------------------------------------- /lib/wit_bot/models/wit/entity.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/models/wit/entity.rb -------------------------------------------------------------------------------- /lib/wit_bot/models/wit/entity/entity_model.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/models/wit/entity/entity_model.rb -------------------------------------------------------------------------------- /lib/wit_bot/models/wit/entity/entity_value.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/models/wit/entity/entity_value.rb -------------------------------------------------------------------------------- /lib/wit_bot/models/wit/expression.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/models/wit/expression.rb -------------------------------------------------------------------------------- /lib/wit_bot/models/wit/intent.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/models/wit/intent.rb -------------------------------------------------------------------------------- /lib/wit_bot/models/wit/intent/intent_expressions.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/models/wit/intent/intent_expressions.rb -------------------------------------------------------------------------------- /lib/wit_bot/models/wit/intent/intent_meta.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/models/wit/intent/intent_meta.rb -------------------------------------------------------------------------------- /lib/wit_bot/requests/message_request.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/requests/message_request.rb -------------------------------------------------------------------------------- /lib/wit_bot/requests/models/entities_request.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/requests/models/entities_request.rb -------------------------------------------------------------------------------- /lib/wit_bot/requests/models/expressions_request.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/requests/models/expressions_request.rb -------------------------------------------------------------------------------- /lib/wit_bot/requests/models/intents_request.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/requests/models/intents_request.rb -------------------------------------------------------------------------------- /lib/wit_bot/requests/models/wit_model_request.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/requests/models/wit_model_request.rb -------------------------------------------------------------------------------- /lib/wit_bot/requests/wit_request.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/requests/wit_request.rb -------------------------------------------------------------------------------- /lib/wit_bot/requests/wit_request_sender.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/lib/wit_bot/requests/wit_request_sender.rb -------------------------------------------------------------------------------- /lib/wit_bot/version.rb: -------------------------------------------------------------------------------- 1 | module WitBot 2 | VERSION = '0.5.7' 3 | end 4 | -------------------------------------------------------------------------------- /spec/configuration_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/spec/configuration_spec.rb -------------------------------------------------------------------------------- /spec/entity_model_proxy_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/spec/entity_model_proxy_spec.rb -------------------------------------------------------------------------------- /spec/helpers/helper.rb: -------------------------------------------------------------------------------- 1 | require_relative '../../lib/wit_bot' -------------------------------------------------------------------------------- /spec/message_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/spec/message_spec.rb -------------------------------------------------------------------------------- /spec/message_thread_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/spec/message_thread_spec.rb -------------------------------------------------------------------------------- /spec/outcome_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/spec/outcome_spec.rb -------------------------------------------------------------------------------- /spec/state_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/spec/state_spec.rb -------------------------------------------------------------------------------- /spec/wit_bot_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/spec/wit_bot_spec.rb -------------------------------------------------------------------------------- /wit_bot.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benaubin/wit_bot/HEAD/wit_bot.gemspec --------------------------------------------------------------------------------