Skip to content
This repository has been archived by the owner on Apr 13, 2019. It is now read-only.

Add examples and documentation for plugin configuration #75

Open
dominikh opened this issue Mar 30, 2012 · 3 comments
Open

Add examples and documentation for plugin configuration #75

dominikh opened this issue Mar 30, 2012 · 3 comments

Comments

@dominikh
Copy link
Member

No description provided.

@oz
Copy link
Contributor

oz commented Jun 14, 2012

@dominikh How can we help? Do you have any wishes regarding some examples that could be written?

@dominikh
Copy link
Member Author

Well, right now, there is zero human-language documentation on how plugins are written, how matchers work, what can be configured etc. All we have is a very brief plugin example in the "Getting started" document (which incidentally links to a "coming soon" plugin document...)

So what's really needed is a guide-like description of how the whole thing works. Examples by itself aren't really needed, the examples/ directory is full of those.

@wyattisimo
Copy link

In reference to issue #47 regarding plugin prefixes, the documentation here (http://rubydoc.info/gems/cinch/Cinch/Plugin/ClassMethods:match) is not clear on this point.

It lists the prefix default as nil and describes the attribute as "A prefix overwriting the per-plugin prefix." But this is misleading because it does not overwrite the per-plugin prefix, rather it creates a per-plugin prefix by overwriting the plugins prefix specified in bot options.

I spend quite a while in utter confusion over why my plugin's execute method was not firing. I thought I was using a nil prefix until I finally discovered that bot options globally defaults the plugins prefix to /^!/.

@dominikh dominikh modified the milestone: Version 2.1.0 Mar 17, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants