Lita Handler for Motion AI (https://motion.ai)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
locales
.gitignore
LICENSE.md
README.md
Rakefile
lita-motionai.gemspec

README.md

Lita Motion AI Handler

Gem Version Dependency Status Codacy Badge Downloads Docs License

Motion AI is a bot service that provides visiual design and hosting capabilities for conversational bots. Using this handler a Lita bot can offload conversational handling to Motion AI. The handler accomplishes this by sending all received messages to Motion AI by API and responding with the message returned by Motion AI.

Configuration

Direct

Lita.configure do |config|

  # Motion AI API Info
  config.handlers.motionai.api_key = 'my_api_key'
  config.handlers.motionai.bot_id = 12345          # your Motion AI bot id

end

Using LitaDotenv

LitaDotenv is a way to load in Lita config parameters from the environment, including the .env file. Some use cases include:

  • using the .env file
  • using Heroku environment variables
LITA_HANDLERS_MOTIONAI_apiKey=my_api_key
LITA_HANDLERS_MOTIONAI_botId__TYPEINT=12345

Links

Motion AI