#
# TODO find a way to manage session id (logging out, manually and/or
# automatically)
-#
require 'drb/drb'
module ::Irc
+class Bot
module Auth
end
end
- # We extend the AuthManagerClass to handle remote logins
+ # We extend the ManagerClass to handle remote logins
#
- class AuthManagerClass
+ class ManagerClass
MAX_SESSION_ID = 2**128 - 1
end
- class IrcBot
-
- # The Irc::IrcBot::RemoteObject class represents and object that will take care
+ # The Irc::Bot::RemoteObject class represents and object that will take care
# of interfacing with remote clients
#
# Example client session:
end
end
- end
-
module Plugins
# We create a new Ruby module that can be included by BotModules that want to
end
end
+end
class RemoteModule < CoreBotModule
include RemoteCoreBotModule
- BotConfig.register BotConfigBooleanValue.new('remote.autostart',
+ Config.register Config::BooleanValue.new('remote.autostart',
:default => true,
:requires_rescan => true,
:desc => "Whether the remote service provider should be started automatically")
- BotConfig.register BotConfigIntegerValue.new('remote.port',
+ Config.register Config::IntegerValue.new('remote.port',
:default => 7268, # that's 'rbot'
:requires_rescan => true,
:desc => "Port on which the remote interface will be presented")
- BotConfig.register BotConfigStringValue.new('remote.host',
+ Config.register Config::StringValue.new('remote.host',
:default => '',
:requires_rescan => true,
:desc => "Port on which the remote interface will be presented")