C# Class IrcDotNet.IrcBot

Inheritance: IDisposable
ファイルを表示 Open project: IrcDotNet/IrcDotNet Class Usage Examples

Public Methods

Method Description
Disconnect ( string server ) : void
Dispose ( ) : void
IrcBot ( ) : System
Run ( ) : void
Stop ( ) : void

Protected Methods

Method Description
Connect ( string server, IrcRegistrationInfo registrationInfo ) : void
Dispose ( bool disposing ) : void
GetClientFromServerNameMask ( string serverNameMask ) : IrcClient
GetDefaultReplyTarget ( IrcClient client, IIrcMessageSource source, IList targets ) : IList
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
IrcClient_Channel_MessageReceived ( object sender, IrcMessageEventArgs e ) : void
IrcClient_Channel_NoticeReceived ( object sender, IrcMessageEventArgs e ) : void
IrcClient_Channel_UserJoined ( object sender, IrcChannelUserEventArgs e ) : void
IrcClient_Channel_UserLeft ( object sender, IrcChannelUserEventArgs e ) : void
IrcClient_Connected ( object sender, EventArgs e ) : void
IrcClient_Disconnected ( object sender, EventArgs e ) : void
IrcClient_LocalUser_JoinedChannel ( object sender, IrcChannelEventArgs e ) : void
IrcClient_LocalUser_LeftChannel ( object sender, IrcChannelEventArgs e ) : void
IrcClient_LocalUser_MessageReceived ( object sender, IrcMessageEventArgs e ) : void
IrcClient_LocalUser_NoticeReceived ( object sender, IrcMessageEventArgs e ) : void
IrcClient_Registered ( object sender, EventArgs e ) : void
ReadChatCommand ( IrcClient client, IrcMessageEventArgs eventArgs ) : bool
ReadChatCommand ( IrcClient client, IIrcMessageSource source, IList targets, string command, string parameters ) : void
ReadCommand ( string command, IList parameters ) : void

Method Details

Connect() protected method

protected Connect ( string server, IrcRegistrationInfo registrationInfo ) : void
server string
registrationInfo IrcRegistrationInfo
return void

Disconnect() public method

public Disconnect ( string server ) : void
server string
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetClientFromServerNameMask() protected method

protected GetClientFromServerNameMask ( string serverNameMask ) : IrcClient
serverNameMask string
return IrcClient

GetDefaultReplyTarget() protected method

protected GetDefaultReplyTarget ( IrcClient client, IIrcMessageSource source, IList targets ) : IList
client IrcClient
source IIrcMessageSource
targets IList
return IList

InitializeChatCommandProcessors() protected abstract method

protected abstract InitializeChatCommandProcessors ( ) : void
return void

InitializeCommandProcessors() protected abstract method

protected abstract InitializeCommandProcessors ( ) : void
return void

IrcBot() public method

public IrcBot ( ) : 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

Run() public method

public Run ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void