module Cinch::Plugin::ClassMethods
Add the pre hook to all messages triggered
Public Instance Methods
enforce_cooldown()
click to toggle source
# File lib/cinch/plugin/hooks.rb, line 6 def enforce_cooldown hook(:pre, for: [:match], method: ->(m) { Cooldowns.finished?(m, shared[:cooldown], @bot) }) end