Sha256: 5f52f18cec317f7bf40698e48b1c38eeeabbc77c60b81e765fc0f545bfda0cc1
Contents?: true
Size: 460 Bytes
Versions: 33
Compression:
Stored size: 460 Bytes
Contents
module Admin class Autojoin include Cinch::Plugin include Cinch::Helpers # Listeners listen_to :invite, method: :join_and_notify enable_acl(:nobody) # Methods def join_and_notify(m) if Config.options.key? :join_on_invite log2chan("#{m.user.nick} has requested me join #{m.channel}", :notice) Channel(m.channel).join end end end end # AutoLoad Bot.config.plugins.plugins.push Admin::Autojoin
Version data entries
33 entries across 33 versions & 1 rubygems