C# Class SimoBot.ExplFeature

Inheritance: IFeature
ファイルを表示 Open project: code-n-beer/SimoBot

Public Methods

Method Description
Execute ( IrcDotNet Client, string channel, IrcDotNet Sender, string message ) : void
ExecuteAdd ( IrcDotNet Client, string Channel, IrcDotNet Sender, string Message ) : void
ExecuteRemove ( IrcDotNet Client, string Channel, IrcDotNet Sender, string Message ) : void
Initialize ( string>.Dictionary configs ) : void
RegisterFeature ( EngineMessageHandlers features ) : void
explain ( string>.Dictionary dictionary ) : string
explain ( string word, string>.Dictionary dictionary ) : string

Private Methods

Method Description
ReadFromFile ( ) : void
addExpl ( string name, string expl, string>.Dictionary dictionary, string filename ) : string
getLastSuffix ( string name, string>.Dictionary dictionary ) : string
getNumericSuffix ( string name ) : int
loadDictionary ( string filename ) : string>.Dictionary
random ( int max ) : int
refreshTextFile ( string filename, string>.Dictionary dictionary ) : void
remove ( string what, string>.Dictionary dictionary, string filename ) : void
remove ( string what, string word, string>.Dictionary dictionary, string filename ) : void

Method Details

Execute() public method

public Execute ( IrcDotNet Client, string channel, IrcDotNet Sender, string message ) : void
Client IrcDotNet
channel string
Sender IrcDotNet
message string
return void

ExecuteAdd() public method

public ExecuteAdd ( IrcDotNet Client, string Channel, IrcDotNet Sender, string Message ) : void
Client IrcDotNet
Channel string
Sender IrcDotNet
Message string
return void

ExecuteRemove() public method

public ExecuteRemove ( IrcDotNet Client, string Channel, IrcDotNet Sender, string Message ) : void
Client IrcDotNet
Channel string
Sender IrcDotNet
Message string
return void

Initialize() public method

public Initialize ( string>.Dictionary configs ) : void
configs string>.Dictionary
return void

RegisterFeature() public method

public RegisterFeature ( EngineMessageHandlers features ) : void
features EngineMessageHandlers
return void

explain() public method

public explain ( string>.Dictionary dictionary ) : string
dictionary string>.Dictionary
return string

explain() public method

public explain ( string word, string>.Dictionary dictionary ) : string
word string
dictionary string>.Dictionary
return string