mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
Make it possible to adjust the pCampbot login delay via the [BotManager] LoginDelay parameter of pCampbot.ini
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user