Comments (4)
helpers
is only used in combination with the on
syntax. Since plugins are ordinary classes, they should just include/extend modules as needed.
from cinch.
So my plugin should extend my bot? Guess it's just my lack of Ruby knowledge at this point :P
How should I be doing this if this is working as intended? There's a central value that all plugins need to be able to check, and the configuration object doesn't seem like the right place.
from cinch.
The configuration object is the right place when that "central value" is a setting that won't change during runtime. Otherwise use something like this:https://gist.github.com/88eee25a620a8bb18408
from cinch.
The value will be changing, it's a plugin to let people request that the bot shuts up for an amount of time :P The idea is we only store the value (and set it) in the Shutup plugin, but it'd be available in all of the other plugins for seeing if they should output. Shutup and shutup_expire are both values that get set to Time objects when someone says "Bot, shut up."
I'll give that module method a shot, thanks.
from cinch.
Related Issues (20)
- How create an event for all message sended ? HOT 1
- Can I running In Background? HOT 3
- Site is offline HOT 1
- Cinch::Helper can't get instances of Channel and User objects HOT 5
- Upon timeout (either through internet loss or server connection loss), cinch replays already-executed messages and commands. HOT 3
- "Write" and "ping" irc threads still open after bot.quit HOT 1
- Uppercase CTCP commands so they always match
- Is this still maintained? HOT 3
- Method name typo cinch v2.3.3 HOT 1
- Support for reverse DCC SEND
- Sometimes on_channel handler receives message concatenated with other one
- IRCv3 tags broken if tag value contains a colon HOT 4
- backup file in gem HOT 3
- ":invite" event is not documented HOT 2
- adding proxy support HOT 1
- Bot#oper crashes the process when used specific IRCds
- Mismatch between code and released version. HOT 1
- Missing documentation for bot configuration HOT 5
- idle method always return 0 HOT 11
- SASL authentication times out HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cinch.