Class: HttpUtilPlugin

Inherits:
CoreBotModule
  • Object
show all
Defined in:
lib/rbot/core/utils/httputil.rb

Instance Method Summary collapse

Constructor Details

#initialize(*a) ⇒ HttpUtilPlugin

Returns a new instance of HttpUtilPlugin.



685
686
687
688
689
# File 'lib/rbot/core/utils/httputil.rb', line 685

def initialize(*a)
  super(*a)
  debug 'initializing httputil'
  @bot.httputil = Irc::Utils::HttpUtil.new(@bot)
end

Instance Method Details

#cleanupObject



691
692
693
694
695
696
# File 'lib/rbot/core/utils/httputil.rb', line 691

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