Permalink
Browse files

Changes `AutoStartBots` setting to `AutoStartAllBots`

Fixes #293
  • Loading branch information...
FunkyLoveCow
FunkyLoveCow committed May 24, 2013
1 parent b221b81 commit 680f6f68dbe9a5c01ff537b9b99eee9d67f57b4c
Showing with 6 additions and 6 deletions.
  1. +1 −1 Bin/Debug/settings-template.json
  2. +1 −1 Bin/Release/settings-template.json
  3. +3 −3 SteamBot/Configuration.cs
  4. +1 −1 SteamBot/Program.cs
@@ -3,7 +3,7 @@
"ApiKey":"Steam API Key goes here!",
"mainLog": "syslog.log",
"UseSeparateProcesses": "false",
-"AutoStartBots": "true",
+"AutoStartAllBots": "true",
"Bots": [
{
"Username":"BOT USERNAME",
@@ -3,7 +3,7 @@
"ApiKey":"Steam API Key goes here!",
"mainLog": "syslog.log",
"UseSeparateProcesses": "false",
-"AutoStartBots": "true",
+"AutoStartAllBots": "true",
"Bots": [
{
"Username":"BOT USERNAME",
@@ -84,13 +84,13 @@ public static Configuration LoadConfiguration (string filename)
public bool UseSeparateProcesses { get; set; }
/// <summary>
- /// Gets or sets a value indicating whether to auto start bots.
+ /// Gets or sets a value indicating whether to auto start all bots.
/// </summary>
/// <value>
/// <c>true</c> to make the bots start on program load; otherwise,
/// <c>false</c> to not start them.
/// </value>
- public bool AutoStartBots { get; set; }
+ public bool AutoStartAllBots { get; set; }
#endregion Top-level config properties
@@ -137,7 +137,7 @@ public class BotInfo
/// <c>true</c> to make the bot start on program load.
/// </value>
/// <remarks>
- /// If <see cref="SteamBot.Configuration.AutoStartBots "/> is true,
+ /// If <see cref="SteamBot.Configuration.AutoStartAllBots "/> is true,
/// then this property has no effect and is ignored.
/// </remarks>
[JsonProperty (Required = Required.Default, DefaultValueHandling = DefaultValueHandling.Populate)]
View
@@ -104,7 +104,7 @@ private static void BotManagerMode()
if (manager.ConfigObject.UseSeparateProcesses)
SetConsoleCtrlHandler(ConsoleCtrlCheck, true);
- if (manager.ConfigObject.AutoStartBots)
+ if (manager.ConfigObject.AutoStartAllBots)
{
var startedOk = manager.StartBots();

0 comments on commit 680f6f6

Please sign in to comment.