module PluginTimers
Start Cinch plugin timers after mid-session plugin registration. Timers declared with start_automatically only hook :connect, so reloads after the bot is already online would otherwise never tick.
Public Instance Methods
Source
# File lib/plugin_timers.rb, line 9 def start(plugin) return unless plugin.respond_to?(:timers) plugin.timers.each do |timer| timer.start unless timer.started? end end