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.



675
676
677
678
679
# File 'lib/rbot/core/utils/httputil.rb', line 675

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

Instance Method Details

#cleanupObject



681
682
683
684
685
686
# File 'lib/rbot/core/utils/httputil.rb', line 681

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