C# Class SteamBot.BotManager

A class that manages SteamBot processes.
Exibir arquivo Open project: natoshi/steamdogebot Class Usage Examples

Public Properties

Property Type Description
mainLog Log

Public Methods

Method Description
AuthBot ( int index, string AuthCode ) : void

Sets the SteamGuard auth code on the given bot

BotManager ( ) : System
LoadConfiguration ( string configFile ) : bool

Loads a configuration file to use when creating bots.

SendCommand ( int index, string command ) : void

Sends the BotManager command to the target Bot

StartBot ( int index ) : void

Starts a bot in a new process given that bot's index in the configuration.

StartBot ( string botUserName ) : void

Starts a bot given that bots configured username.

StartBots ( ) : bool

Starts the bots that have been configured.

StopBot ( int index ) : void

Kills a single bot process given that bots index in the configuration.

StopBot ( string botUserName ) : void

Stops a bot given that bots configured username.

StopBots ( ) : void

Kills all running bot processes.

UserHandlerCreator ( Bot bot, SteamID sid ) : UserHandler

A method to return an instance of the bot.BotControlClass.

Method Details

AuthBot() public method

Sets the SteamGuard auth code on the given bot
public AuthBot ( int index, string AuthCode ) : void
index int The bot's index
AuthCode string The auth code
return void

BotManager() public method

public BotManager ( ) : System
return System

LoadConfiguration() public method

Loads a configuration file to use when creating bots.
public LoadConfiguration ( string configFile ) : bool
configFile string false if there was problems loading the config file.
return bool

SendCommand() public method

Sends the BotManager command to the target Bot
public SendCommand ( int index, string command ) : void
index int The target bot's index
command string The command to be executed
return void

StartBot() public method

Starts a bot in a new process given that bot's index in the configuration.
public StartBot ( int index ) : void
index int A zero-based index.
return void

StartBot() public method

Starts a bot given that bots configured username.
public StartBot ( string botUserName ) : void
botUserName string The bot's username.
return void

StartBots() public method

Starts the bots that have been configured.
public StartBots ( ) : bool
return bool

StopBot() public method

Kills a single bot process given that bots index in the configuration.
public StopBot ( int index ) : void
index int A zero-based index.
return void

StopBot() public method

Stops a bot given that bots configured username.
public StopBot ( string botUserName ) : void
botUserName string The bot's username.
return void

StopBots() public method

Kills all running bot processes.
public StopBots ( ) : void
return void

UserHandlerCreator() public static method

A method to return an instance of the bot.BotControlClass.
Thrown if the control class type does not exist.
public static UserHandlerCreator ( Bot bot, SteamID sid ) : UserHandler
bot Bot The bot.
sid SteamKit2.SteamID The steamId.
return UserHandler

Property Details

mainLog public_oe static_oe property

public static Log mainLog
return Log