Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

non-command-only route #145

Open
ingoweiss opened this issue Sep 25, 2015 · 3 comments
Open

non-command-only route #145

ingoweiss opened this issue Sep 25, 2015 · 3 comments

Comments

@ingoweiss
Copy link

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'

@jimmycuadra
Copy link
Collaborator

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.

@ingoweiss
Copy link
Author

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 ?

@jimmycuadra
Copy link
Collaborator

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants