C# Class wmib.Configuration

Configuration
Datei anzeigen Open project: benapetr/wikimedia-bot

Public Properties

Property Type Description
Channels List

Public Methods

Method Description
Load ( ) : int

Load config of bot

RetrieveConfig ( string key, int default_ ) : int
RetrieveConfig ( string key, string default_ = null ) : string
Save ( ) : void

Save a wm-bot channel list

TempName ( string file ) : string

Return a temporary name for a file

Private Methods

Method Description
File2Dict ( ) : string>.Dictionary

Method Details

Load() public static method

Load config of bot
public static Load ( ) : int
return int

RetrieveConfig() public static method

public static RetrieveConfig ( string key, int default_ ) : int
key string
default_ int
return int

RetrieveConfig() public static method

public static RetrieveConfig ( string key, string default_ = null ) : string
key string
default_ string
return string

Save() public static method

Save a wm-bot channel list
public static Save ( ) : void
return void

TempName() public static method

Return a temporary name for a file
public static TempName ( string file ) : string
file string File you need to have temporary name for
return string

Property Details

Channels public_oe static_oe property

List of channels the bot is in, you should never need to use this, use ChannelList instead WARNING: this is thread unsafe, you always need to lock this object before you access it
public static List Channels
return List