Make it possible to adjust the pCampbot login delay via the [BotManager] LoginDelay parameter of pCampbot.ini
parent
51c7fb1969
commit
70f89ae65b
|
@ -82,6 +82,13 @@ namespace pCampBot
|
||||||
|
|
||||||
IConfigSource configSource = new IniConfigSource(iniFilePath);
|
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"];
|
IConfig botConfig = configSource.Configs["Bot"];
|
||||||
|
|
||||||
if (botConfig != null)
|
if (botConfig != null)
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
; This is the example config file for pCampbot
|
; This is the example config file for pCampbot
|
||||||
; To use it, copy this file to pCampbot.ini and change settings if required
|
; 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]
|
[Bot]
|
||||||
; Control whether bots should regularly send agent updates
|
; Control whether bots should regularly send agent updates
|
||||||
; Not doing this will reduce CPU requirements for pCampbot but greatly
|
; Not doing this will reduce CPU requirements for pCampbot but greatly
|
||||||
|
|
Loading…
Reference in New Issue