Make it possible to adjust the pCampbot login delay via the [BotManager] LoginDelay parameter of pCampbot.ini

0.7.6-extended
Justin Clark-Casey (justincc) 2013-08-22 23:43:33 +01:00
parent 51c7fb1969
commit 70f89ae65b
2 changed files with 11 additions and 0 deletions

View File

@ -82,6 +82,13 @@ namespace pCampBot
IConfigSource configSource = new IniConfigSource(iniFilePath);
IConfig botManagerConfig = configSource.Configs["BotManager"];
if (botManagerConfig != null)
{
bm.LoginDelay = botManagerConfig.GetInt("LoginDelay", bm.LoginDelay);
}
IConfig botConfig = configSource.Configs["Bot"];
if (botConfig != null)

View File

@ -1,6 +1,10 @@
; This is the example config file for pCampbot
; To use it, copy this file to pCampbot.ini and change settings if required
[BotManager]
; Number of milliseconds to wait between bot logins
LoginDelay = 5000
[Bot]
; Control whether bots should regularly send agent updates
; Not doing this will reduce CPU requirements for pCampbot but greatly