C# Class IrcDotNet.MarkovChainTextBot

Inheritance: BasicIrcBot
Mostra file Open project: IrcDotNet/IrcDotNet Class Usage Examples

Public Methods

Method Description
MarkovChainTextBot ( ) : System

Protected Methods

Method Description
InitializeChatCommandProcessors ( ) : void
InitializeCommandProcessors ( ) : void
OnChannelMessageReceived ( IrcChannel channel, IrcMessageEventArgs e ) : void
OnChannelNoticeReceived ( IrcChannel channel, IrcMessageEventArgs e ) : void
OnChannelUserJoined ( IrcChannel channel, IrcChannelUserEventArgs e ) : void
OnChannelUserLeft ( IrcChannel channel, IrcChannelUserEventArgs e ) : void
OnClientConnect ( IrcClient client ) : void
OnClientDisconnect ( IrcClient client ) : void
OnClientRegistered ( IrcClient client ) : void
OnLocalUserJoinedChannel ( IrcLocalUser localUser, IrcChannelEventArgs e ) : void
OnLocalUserLeftChannel ( IrcLocalUser localUser, IrcChannelEventArgs e ) : void
OnLocalUserMessageReceived ( IrcLocalUser localUser, IrcMessageEventArgs e ) : void
OnLocalUserNoticeReceived ( IrcLocalUser localUser, IrcMessageEventArgs e ) : void

Private Methods

Method Description
GenerateRandomSentence ( ) : string
ProcessChatCommandStats ( IrcClient client, IIrcMessageSource source, IList targets, string command, IList parameters ) : void
ProcessChatCommandTalk ( IrcClient client, IIrcMessageSource source, IList targets, string command, IList parameters ) : void
SendRandomMessage ( IrcClient client, IList targets, string textPrefix, int numSentences = -1 ) : void

Method Details

InitializeChatCommandProcessors() protected method

protected InitializeChatCommandProcessors ( ) : void
return void

InitializeCommandProcessors() protected method

protected InitializeCommandProcessors ( ) : void
return void

MarkovChainTextBot() public method

public MarkovChainTextBot ( ) : System
return System

OnChannelMessageReceived() protected method

protected OnChannelMessageReceived ( IrcChannel channel, IrcMessageEventArgs e ) : void
channel IrcChannel
e IrcMessageEventArgs
return void

OnChannelNoticeReceived() protected method

protected OnChannelNoticeReceived ( IrcChannel channel, IrcMessageEventArgs e ) : void
channel IrcChannel
e IrcMessageEventArgs
return void

OnChannelUserJoined() protected method

protected OnChannelUserJoined ( IrcChannel channel, IrcChannelUserEventArgs e ) : void
channel IrcChannel
e IrcChannelUserEventArgs
return void

OnChannelUserLeft() protected method

protected OnChannelUserLeft ( IrcChannel channel, IrcChannelUserEventArgs e ) : void
channel IrcChannel
e IrcChannelUserEventArgs
return void

OnClientConnect() protected method

protected OnClientConnect ( IrcClient client ) : void
client IrcClient
return void

OnClientDisconnect() protected method

protected OnClientDisconnect ( IrcClient client ) : void
client IrcClient
return void

OnClientRegistered() protected method

protected OnClientRegistered ( IrcClient client ) : void
client IrcClient
return void

OnLocalUserJoinedChannel() protected method

protected OnLocalUserJoinedChannel ( IrcLocalUser localUser, IrcChannelEventArgs e ) : void
localUser IrcLocalUser
e IrcChannelEventArgs
return void

OnLocalUserLeftChannel() protected method

protected OnLocalUserLeftChannel ( IrcLocalUser localUser, IrcChannelEventArgs e ) : void
localUser IrcLocalUser
e IrcChannelEventArgs
return void

OnLocalUserMessageReceived() protected method

protected OnLocalUserMessageReceived ( IrcLocalUser localUser, IrcMessageEventArgs e ) : void
localUser IrcLocalUser
e IrcMessageEventArgs
return void

OnLocalUserNoticeReceived() protected method

protected OnLocalUserNoticeReceived ( IrcLocalUser localUser, IrcMessageEventArgs e ) : void
localUser IrcLocalUser
e IrcMessageEventArgs
return void