Revision e75cca5b
Added by Marc Dequènes about 14 years ago
- ID e75cca5bacfe5869dc590f2e26f65c4064216065
bin/mapmaker | ||
---|---|---|
bindtextdomain("cyborghood_mapmaker", {:path => Config::L10N_DIR, :charset => "UTF-8"})
|
||
|
||
class MapMaker < Cyborg
|
||
# load config before modules are included
|
||
Config.load(self.human_name)
|
||
|
||
include BotNetServer
|
||
|
||
def interface
|
bin/mapmaker_client | ||
---|---|---|
bindtextdomain("cyborghood_mapmaker", {:path => Config::L10N_DIR, :charset => "UTF-8"})
|
||
|
||
class MapMakerClient < Cyborg
|
||
# load config before modules are included
|
||
Config.load
|
||
|
||
include BotNet
|
||
|
||
def start_work
|
lib/cyborghood/cyborg.rb | ||
---|---|---|
bindtextdomain("cyborghood", {:path => Config::L10N_DIR, :charset => "UTF-8"})
|
||
|
||
def initialize
|
||
# load config
|
||
Config.load(self.human_name)
|
||
@config = Config.instance
|
||
@config.bot_id = self.class.name
|
||
|
Also available in: Unified diff
[fix] workaround config loaded too late (i need to find a better way to select code in the included modules)