C# Class SimoBot.Features.MarkovFeature

Inheritance: IFeature
Afficher le fichier Open project: code-n-beer/SimoBot

Méthodes publiques

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

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

public Execute ( IrcDotNet Client, string Channel, IrcDotNet Sender, string Message ) : void
Client IrcDotNet
Channel string
Sender IrcDotNet
Message string
Résultat void

Initialize() public méthode

public Initialize ( string>.Dictionary configs ) : void
configs string>.Dictionary
Résultat void

RegisterFeature() public méthode

public RegisterFeature ( EngineMessageHandlers features ) : void
features EngineMessageHandlers
Résultat void

addNewLineToRedis() public méthode

public addNewLineToRedis ( string s ) : void
s string
Résultat void

getNewMarkov() public méthode

public getNewMarkov ( string seed, int recursionLevel ) : string
seed string
recursionLevel int
Résultat string

selectDb() public méthode

public selectDb ( int db ) : void
db int
Résultat void