Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spajus/lita-debug
Plugin for debugging Lita chatbot
https://github.com/spajus/lita-debug
Last synced: 7 days ago
JSON representation
Plugin for debugging Lita chatbot
- Host: GitHub
- URL: https://github.com/spajus/lita-debug
- Owner: spajus
- Created: 2017-11-03T18:01:56.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-03T18:53:43.000Z (about 7 years ago)
- Last Synced: 2025-01-12T21:42:16.309Z (12 days ago)
- Language: Ruby
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lita-debug
[![Build Status](https://travis-ci.org/spajus/lita-debug.png?branch=master)](https://travis-ci.org/spajus/lita-debug?branc=master)
[![Coverage Status](https://coveralls.io/repos/github/spajus/lita-debug/badge.svg?branch=master)](https://coveralls.io/github/spajus/lita-debug?branch=master)A plugin for debugging [Lita](https://www.lita.io) interactively, in
production.## Installation
Add lita-debug to your Lita instance's Gemfile:
``` ruby
gem "lita-debug"
```## Configuration
```ruby
# lita_config.rbLita.configure do |config|
config.handlers.debug.enable_eval = true
config.handlers.debug.restrict_eval_to = [:admins]
config.handlers.debug.restrict_debug_to = [:admins, :developers]
end
```## Usage
```
Lita > lita debug
---
:server:
:hostname: minion.local
:room: !ruby/object:Lita::Room
id: shell
metadata: {}
name: shell
:user: !ruby/object:Lita::User
id: '1'
metadata:
name: Shell User
name: Shell UserLita > lita eval response.room.name
"shell"
Lita > lita eval robot.name
"Lita"
Lita > lita eval 1+2
3
```