Class: AgentPlugin

Inherits:
CoreBotModule
  • Object
show all
Defined in:
/home/apoc/projects/ruby/rbot/lib/rbot/core/utils/agent.rb

Overview

Irc

Instance Method Summary (collapse)

Constructor Details

- (AgentPlugin) initialize(*a)

Returns a new instance of AgentPlugin



77
78
79
80
81
# File '/home/apoc/projects/ruby/rbot/lib/rbot/core/utils/agent.rb', line 77

def initialize(*a)
  super(*a)
  debug 'initializing agent factory'
  @bot.agent = Irc::Utils::AgentFactory.new(@bot)
end

Instance Method Details

- (Object) cleanup



83
84
85
86
87
88
# File '/home/apoc/projects/ruby/rbot/lib/rbot/core/utils/agent.rb', line 83

def cleanup
  debug 'shutting down agent factory'
  @bot.agent.cleanup
  @bot.agent = nil
  super
end