No commit activity in last 3 years
No release in over 3 years
Search and parse through Slack channel history with regex
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 3.0.0

Runtime

 Project Readme

lita-regexcellent

Counts the number of Slack messages that matches a regular expression in the current channel. Only compatible with the Slack adapter.

Installation

  1. Add gem to your Lita instance: gem "lita-regexcellent"
  2. Set SLACK_TOKEN if not already set: heroku config:set SLACK_TOKEN=$token

Usage

To use, issue the command (where lita is your robots name):

lita count /regex/ since:1_week_ago until:now
=> Found 12 results for /regex/ since 1 week ago until now.

since and until are both optional and default to the listed values.

The search will also skip over previous queries (lita count /regex/) and previous bot responses (Found 12 results for...).

Running tests

  1. Make sure Redis is running locally
  2. rspec spec