You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 13, 2019. It is now read-only.
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.
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
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."
In my bot:
And in a plugin:
But when running I get:
Am I misunderstanding how helpers work or is this a bug? I thought it would define the methods in the context of the bot object?
The text was updated successfully, but these errors were encountered: