Questions tagged [lita]

Lita is a framework for writing a chat bot in the Ruby programming language.

Lita is an open source chat bot framework in the Ruby programming language.

15 questions
5
votes
1 answer

How to add gem dependency to my ruby gem

I think I am fundamentally missing something. I am learning ruby, and have been playing with Lita lately, and wrote(my first) a simple little gem to get some directions/distance from the bot. The problem I am having is where to put a gem dependency…
cashman04
  • 1,134
  • 2
  • 13
  • 27
2
votes
1 answer

Adding an SSL cert to Lita bot using Docker

I've connected my Lita bot to a Diaglogflow agent via the lita-api-ai plugin and (currently) a Firebase-enabled fulfillment script edited inline on the Dialogflow site. I'd like to convert that webhook into ruby and host it as a handler in Lita…
Melissa Avery-Weir
  • 1,357
  • 2
  • 16
  • 47
2
votes
1 answer

How can I set config on Lita Handler for tests?

My handler have 4 configs input config :base_url config :details_path config :create_path config :token I set to them in my lita_config file, but to test my handler, I need set values to him on my specs as well. How can I do this?
Luiz Carvalho
  • 1,549
  • 1
  • 23
  • 46
2
votes
1 answer

Conditional routes and bot name in Lita

I am trying to develop a simple Lita chat bot with more flexible command routing. There are a couple of issues I am having difficulties with. 1. Conditional routing How can I use config values before or inside route definitions? For example, instead…
DannyB
  • 12,810
  • 5
  • 55
  • 65
2
votes
2 answers

Regex capturing from a non capture group in ruby

I am trying to fix a bit of regex I have for a chatops bot for lita. I have the following regex: /^(?:how\s+do\s+I\s+you\s+get\s+far\s+is\s+it\s+from\s+)?(.+)\s+to\s+(.+)/i This is supposed to capture the words before and after 'to', with optional…
cashman04
  • 1,134
  • 2
  • 13
  • 27
1
vote
1 answer

when pushing to heroku and getting an error

trying push my lita code to heroku but I'm getting this error. ❯ git push heroku master │ Enumerating objects: 2, done. …
aulbytj
  • 61
  • 8
1
vote
1 answer

how to find the $BUNDLE_PATH for ruby on mac

I'm trying to deploy lita to docker, I'm following the docker-lita guide but I have reached to this command docker run -d --name lita --link redis --restart always -v $BUNDLE_PATH:/var/bundle -p 80:$LITA_HTTP_PORT $LITA_IMAGE_NAME but i dont know…
aulbytj
  • 61
  • 8
1
vote
0 answers

How unregister a route on Lita?

I register a route to catch a answer of user, but after the question to be answered, I would like to remove it. Creation of route: route(/^*$/i, :problem_description) How I can destroy it?
Luiz Carvalho
  • 1,549
  • 1
  • 23
  • 46
1
vote
1 answer

would hipchat bot "lita" and/or "hubot" work via port 443?

I am trying to connect hipchat bot lita and/or hubot. the XMPP libs have port hard coded to 5222 but I've changed it to 443 - I'm getting errors now. I can post the errors I get but before that I wanted to check if port 443 would work, as it is…
Mani
  • 11
  • 2
1
vote
1 answer

Google calendar integration for a Slack chatbot ChatOps/Lita

I'm trying to see if there's a Google Calendar integration for a Slack chatbot? I'm using Lita, ChatOps for Ruby.
c00000fd
  • 20,994
  • 29
  • 177
  • 400
0
votes
1 answer

lita bot not responding to triggers

I/m using Lita to create a chatbot, I have created a handle called dialog to where and I've opted to separate my code, i have my chat routes in lita-dialog/lib/lita/handlers/dialog.rb and my responses in lita-dialog/bin/main.rb. the code in…
aulbytj
  • 61
  • 8
0
votes
1 answer

How to forward message responses with ruby Lita?

I am working with a chatbot operating on the lita ruby gem using lita-hipchat. After a response is made to lita using hipchat, lita will be able to return messages to the user who created the response through the reply method. I would like to…
Alex Cohen
  • 5,596
  • 16
  • 54
  • 104
0
votes
1 answer

How I create a simples questionnaire with Lita.io?

I try implementing a little questionnaire in Lita as the sample: For which system do you want to open a call? SYSInitials What's your problem? I forgot my password Thanks! Your call was opened! Any help how I can do this? So, I'm try this: module…
Luiz Carvalho
  • 1,549
  • 1
  • 23
  • 46
0
votes
1 answer

Unable to Update a field in database

here is the screenshot of query. you can easily see the database fields and my query. It is perfectly fine but when I execute this query, my record is not updating, what is the problem here? Structure of my database is as follows:
Muneeb Rehman
  • 119
  • 1
  • 8
0
votes
1 answer

Lita.io Handler Plugin - How to get a list of all joined rooms

I am in the process of writing a Handler Plugin for lita.io. What I want to do is provide a HTTP POST endpoint and when it is called I want to publish some chat message to all rooms that Lita has joined. I already succeeded with posting to a…
Daniel Eder
  • 90
  • 1
  • 6