Module ::Bot::Plugins::RemoteBotModule
In: lib/rbot/core/remote.rb
User HTTPResponse BasicUserMessage Bot\n[lib/rbot/core/remote.rb\nlib/rbot/core/utils/extends.rb\nlib/rbot/core/utils/filters.rb\nlib/rbot/core/utils/wordlist.rb] HttpUtil lib/rbot/core/userdata.rb lib/rbot/core/utils/httputil.rb lib/rbot/core/utils/extends.rb lib/rbot/core/remote.rb lib/rbot/core/utils/httputil.rb ParseTime Utils (null) dot/m_15_0.png

We create a new Ruby module that can be included by BotModules that want to provide remote interfaces

Methods

Public Instance methods

Redefine the default cleanup method.

[Source]

     # File lib/rbot/core/remote.rb, line 288
288:       def cleanup
289:         super
290:         remote_cleanup
291:       end

Unregister the remote maps.

[Source]

     # File lib/rbot/core/remote.rb, line 278
278:       def remote_cleanup
279:         return unless defined? @remote_maps
280:         @remote_maps.each { |h|
281:           @bot.remote_dispatcher.unmap(self, h)
282:         }
283:         @remote_maps.clear
284:       end

The remote_map acts just like the BotModule#map method, except that the map is registered to the @bot‘s remote_dispatcher. Also, the remote map handle is handled for the cleanup management

[Source]

     # File lib/rbot/core/remote.rb, line 271
271:       def remote_map(*args)
272:         @remote_maps = Array.new unless defined? @remote_maps
273:         @remote_maps << @bot.remote_dispatcher.map(self, *args)
274:       end

[Validate]