lita icon indicating copy to clipboard operation
lita copied to clipboard

non-command-only route

Open ingoweiss opened this issue 9 years ago • 3 comments

I have a route that should match only if the message is not a command, so basically the opposite of command: true. I am not aware of a way to make this happen currently.

I was thinking about writing an extension for this, but I wanted to ask whether I am missing anything first.

Ideally, I would want the 'route' method's 'command' option to support three values (as opposed to just true/false): 'yes', 'no' and 'both'

ingoweiss avatar Sep 25 '15 19:09 ingoweiss

You're not missing anything. Go ahead with your extension! Please share your work, too – I'm gonna be revising the chat route API in Lita 5 and would likely be interested in incorporating this feature.

jimmycuadra avatar Sep 25 '15 20:09 jimmycuadra

I published a very simple extension, 'lita-non-command-only' that does what I need it to do for now until it is hopefully rendered obsolete by Lita 5 ;-)

BTW how do I get my plugins (this one and 'lita-estimate') to show up on https://www.lita.io/plugins ?

ingoweiss avatar Oct 19 '15 23:10 ingoweiss

Thanks for doing this! They should show up automatically when a job runs every night, though right now I don't have good notifications set up to alert me if it fails. I will look into it soon!

jimmycuadra avatar Oct 23 '15 01:10 jimmycuadra