C# Class SteamBot.BotManager

A class that manages SteamBot processes.
Afficher le fichier Open project: natoshi/steamdogebot Class Usage Examples

Méthodes publiques

Свойство Type Description
mainLog Log

Méthodes publiques

Méthode 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 méthode

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
Résultat void

BotManager() public méthode

public BotManager ( ) : System
Résultat System

LoadConfiguration() public méthode

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.
Résultat bool

SendCommand() public méthode

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
Résultat void

StartBot() public méthode

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.
Résultat void

StartBot() public méthode

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

StartBots() public méthode

Starts the bots that have been configured.
public StartBots ( ) : bool
Résultat bool

StopBot() public méthode

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

StopBot() public méthode

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

StopBots() public méthode

Kills all running bot processes.
public StopBots ( ) : void
Résultat void

UserHandlerCreator() public static méthode

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.
Résultat UserHandler

Property Details

mainLog public_oe static_oe property

public static Log mainLog
Résultat Log