Class: AgentPlugin
- Inherits:
- 
      CoreBotModule
      
        - Object
- CoreBotModule
- AgentPlugin
 
- Defined in:
- /home/apoc/projects/ruby/rbot/lib/rbot/core/utils/agent.rb
Overview
Irc
Instance Method Summary (collapse)
- - (Object) cleanup
- 
  
    
      - (AgentPlugin) initialize(*a) 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of AgentPlugin. 
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 |