Skip to content

grokify/lita-motionai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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