C# Class SimoBot.Features.MarkovFeature

Inheritance: IFeature
Show file Open project: code-n-beer/SimoBot

Public Methods

Method Description
Execute ( IrcDotNet Client, string Channel, IrcDotNet Sender, string Message ) : void
Initialize ( string>.Dictionary configs ) : void
RegisterFeature ( EngineMessageHandlers features ) : void
addNewLineToRedis ( string s ) : void
getNewMarkov ( string seed, int recursionLevel ) : string
selectDb ( int db ) : void

Private Methods

Method Description
biggenFirstLetter ( string str ) : string
getAllKeys ( ) : List
getFirstWord ( string s ) : string
getFirstWordPairFromOneWord ( string seed ) : string
getFromRedis ( string key ) : List
getNextWord ( string key ) : string
getSecondWord ( string s ) : string
getTwoLastWords ( string s ) : string
mostCommonWord ( List words ) : string
prepareDictionary ( string s ) : List>.Dictionary
strip ( string str ) : string

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

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

addNewLineToRedis() public method

public addNewLineToRedis ( string s ) : void
s string
return void

getNewMarkov() public method

public getNewMarkov ( string seed, int recursionLevel ) : string
seed string
recursionLevel int
return string

selectDb() public method

public selectDb ( int db ) : void
db int
return void