C# 클래스 Squishy.Irc.Commands.IrcCommandHandler

파일 보기 프로젝트 열기: jaddie/WCell-Utility-Bot 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CommandsByAlias Command>.IDictionary
RemoteCommandPrefix string

공개 메소드들

메소드 설명
Add ( Command cmd ) : void

Adds a Command to the CommandsByAlias.

Add ( Type cmdType ) : void

Adds a command of the specific type to the CommandsByAlias.

Ban ( IrcChannel Channel ) : void
Ban ( IrcChannel Channel, System.TimeSpan Time ) : void
Ban ( string Channel ) : void
Ban ( string Channel, System.TimeSpan Time ) : void
CtcpReply ( string Target, string Request, string argFormat ) : void
CtcpRequest ( string Target, string Request, string argFormat ) : void
DccRequest ( string Target, string requestFormat ) : void
Describe ( ChatTarget Target, string format ) : void
Describe ( string Target, string format ) : void
Get ( string alias ) : Command
Initialize ( ) : void

Removes all Commands of the specific Type from the CommandsByAlias.

Clears the CommandsByAlias, invokes an instance of every Class that is inherited from Command and adds it to the CommandsByAlias and the List. Is automatically called when an instance of IrcClient is created in order to find all Commands.

Invite ( IrcUser User, IrcChannel Channel ) : void
Invite ( IrcUser User, string Channel ) : void
Invite ( string Nick, IrcChannel Channel ) : void
Invite ( string Nick, string Channel ) : void
IrcCommandHandler ( IrcClient connection ) : System
Join ( string target ) : void
Join ( string target, string key ) : void
Kick ( IrcChannel channel, IrcUser user ) : void
Kick ( IrcChannel Channel, IrcUser User, string reasonFormat ) : void
Kick ( string channel, string user ) : void
Kick ( string Channel, string User, string reasonFormat ) : void
KickBan ( IrcChannel channel ) : void
KickBan ( IrcChannel channel, System.TimeSpan time ) : void
KickBan ( IrcChannel channel, System.TimeSpan time, string reason ) : void
KickBan ( IrcChannel channel, string reason ) : void
KickBan ( string channel ) : void
KickBan ( string channel, System.TimeSpan time ) : void
KickBan ( string channel, System.TimeSpan time, string reason ) : void
KickBan ( string channel, string reason ) : void
Mode ( IrcChannel Channel, string flags ) : void
Mode ( IrcChannel Channel, string flags, string Targets ) : void
Mode ( string flags ) : void
Mode ( string flags, string Targets ) : void
Mode ( string Channel, string flags, string Targets ) : void
Msg ( ChatTarget Target, object format ) : void
Msg ( string Target, object format ) : void
Nick ( string newNick ) : void
Notice ( ChatTarget Target, string format ) : void
Notice ( string Target, string format ) : void
Part ( IrcChannel chan, string reason ) : void
Part ( string chan, string reason ) : void
ReactTo ( CmdTrigger trigger ) : bool

Executes a specific Command with parameters. Interprets the first word as alias, takes all enabled Commands with the specific alias out of the CommandsByAlias-map and triggers the specific Process() method on all of them. If the processing of the command raises an Exception, the fail events are triggered.

ReactTo ( StringStream text ) : bool

Calls return ReactTo(new CmdTrigger(text));.

Remove ( Command cmd ) : void

Removes a Command.

RetrieveBanList ( string Channel ) : void
SetTopic ( string chan, string topic ) : void
Unban ( IrcChannel Channel ) : void
Unban ( IrcChannel Channel, string Masks ) : void
Unban ( string Channel ) : void
Unban ( string Channel, string Masks ) : void
Whois ( string nick ) : void
WhoisSimple ( string nick ) : void
this ( string alias ) : Command

비공개 메소드들

메소드 설명
AddWaitingTrigger ( string reply, CmdTrigger trigger ) : void

Add a trigger that awaits a server-response;

NotifyServResponse ( string sender, string action, string remainder ) : void

메소드 상세

Add() 공개 정적인 메소드

Adds a Command to the CommandsByAlias.
public static Add ( Command cmd ) : void
cmd Command
리턴 void

Add() 공개 정적인 메소드

Adds a command of the specific type to the CommandsByAlias.
public static Add ( Type cmdType ) : void
cmdType System.Type
리턴 void

Ban() 공개 메소드

public Ban ( IrcChannel Channel ) : void
Channel IrcChannel
리턴 void

Ban() 공개 메소드

public Ban ( IrcChannel Channel, System.TimeSpan Time ) : void
Channel IrcChannel
Time System.TimeSpan
리턴 void

Ban() 공개 메소드

public Ban ( string Channel ) : void
Channel string
리턴 void

Ban() 공개 메소드

public Ban ( string Channel, System.TimeSpan Time ) : void
Channel string
Time System.TimeSpan
리턴 void

CtcpReply() 공개 메소드

public CtcpReply ( string Target, string Request, string argFormat ) : void
Target string
Request string
argFormat string
리턴 void

CtcpRequest() 공개 메소드

public CtcpRequest ( string Target, string Request, string argFormat ) : void
Target string
Request string
argFormat string
리턴 void

DccRequest() 공개 메소드

public DccRequest ( string Target, string requestFormat ) : void
Target string
requestFormat string
리턴 void

Describe() 공개 메소드

public Describe ( ChatTarget Target, string format ) : void
Target ChatTarget
format string
리턴 void

Describe() 공개 메소드

public Describe ( string Target, string format ) : void
Target string
format string
리턴 void

Get() 공개 정적인 메소드

public static Get ( string alias ) : Command
alias string
리턴 Command

Initialize() 공개 정적인 메소드

Removes all Commands of the specific Type from the CommandsByAlias. Clears the CommandsByAlias, invokes an instance of every Class that is inherited from Command and adds it to the CommandsByAlias and the List. Is automatically called when an instance of IrcClient is created in order to find all Commands.
public static Initialize ( ) : void
리턴 void

Invite() 공개 메소드

public Invite ( IrcUser User, IrcChannel Channel ) : void
User IrcUser
Channel IrcChannel
리턴 void

Invite() 공개 메소드

public Invite ( IrcUser User, string Channel ) : void
User IrcUser
Channel string
리턴 void

Invite() 공개 메소드

public Invite ( string Nick, IrcChannel Channel ) : void
Nick string
Channel IrcChannel
리턴 void

Invite() 공개 메소드

public Invite ( string Nick, string Channel ) : void
Nick string
Channel string
리턴 void

IrcCommandHandler() 공개 메소드

public IrcCommandHandler ( IrcClient connection ) : System
connection IrcClient
리턴 System

Join() 공개 메소드

public Join ( string target ) : void
target string
리턴 void

Join() 공개 메소드

public Join ( string target, string key ) : void
target string
key string
리턴 void

Kick() 공개 메소드

public Kick ( IrcChannel channel, IrcUser user ) : void
channel IrcChannel
user IrcUser
리턴 void

Kick() 공개 메소드

public Kick ( IrcChannel Channel, IrcUser User, string reasonFormat ) : void
Channel IrcChannel
User IrcUser
reasonFormat string
리턴 void

Kick() 공개 메소드

public Kick ( string channel, string user ) : void
channel string
user string
리턴 void

Kick() 공개 메소드

public Kick ( string Channel, string User, string reasonFormat ) : void
Channel string
User string
reasonFormat string
리턴 void

KickBan() 공개 메소드

public KickBan ( IrcChannel channel ) : void
channel IrcChannel
리턴 void

KickBan() 공개 메소드

public KickBan ( IrcChannel channel, System.TimeSpan time ) : void
channel IrcChannel
time System.TimeSpan
리턴 void

KickBan() 공개 메소드

public KickBan ( IrcChannel channel, System.TimeSpan time, string reason ) : void
channel IrcChannel
time System.TimeSpan
reason string
리턴 void

KickBan() 공개 메소드

public KickBan ( IrcChannel channel, string reason ) : void
channel IrcChannel
reason string
리턴 void

KickBan() 공개 메소드

public KickBan ( string channel ) : void
channel string
리턴 void

KickBan() 공개 메소드

public KickBan ( string channel, System.TimeSpan time ) : void
channel string
time System.TimeSpan
리턴 void

KickBan() 공개 메소드

public KickBan ( string channel, System.TimeSpan time, string reason ) : void
channel string
time System.TimeSpan
reason string
리턴 void

KickBan() 공개 메소드

public KickBan ( string channel, string reason ) : void
channel string
reason string
리턴 void

Mode() 공개 메소드

public Mode ( IrcChannel Channel, string flags ) : void
Channel IrcChannel
flags string
리턴 void

Mode() 공개 메소드

public Mode ( IrcChannel Channel, string flags, string Targets ) : void
Channel IrcChannel
flags string
Targets string
리턴 void

Mode() 공개 메소드

public Mode ( string flags ) : void
flags string
리턴 void

Mode() 공개 메소드

public Mode ( string flags, string Targets ) : void
flags string
Targets string
리턴 void

Mode() 공개 메소드

public Mode ( string Channel, string flags, string Targets ) : void
Channel string
flags string
Targets string
리턴 void

Msg() 공개 메소드

public Msg ( ChatTarget Target, object format ) : void
Target ChatTarget
format object
리턴 void

Msg() 공개 메소드

public Msg ( string Target, object format ) : void
Target string
format object
리턴 void

Nick() 공개 메소드

public Nick ( string newNick ) : void
newNick string
리턴 void

Notice() 공개 메소드

public Notice ( ChatTarget Target, string format ) : void
Target ChatTarget
format string
리턴 void

Notice() 공개 메소드

public Notice ( string Target, string format ) : void
Target string
format string
리턴 void

Part() 공개 메소드

public Part ( IrcChannel chan, string reason ) : void
chan IrcChannel
reason string
리턴 void

Part() 공개 메소드

public Part ( string chan, string reason ) : void
chan string
reason string
리턴 void

ReactTo() 공개 메소드

Executes a specific Command with parameters. Interprets the first word as alias, takes all enabled Commands with the specific alias out of the CommandsByAlias-map and triggers the specific Process() method on all of them. If the processing of the command raises an Exception, the fail events are triggered.
public ReactTo ( CmdTrigger trigger ) : bool
trigger CmdTrigger
리턴 bool

ReactTo() 공개 메소드

Calls return ReactTo(new CmdTrigger(text));.
public ReactTo ( StringStream text ) : bool
text StringStream
리턴 bool

Remove() 공개 정적인 메소드

Removes a Command.
public static Remove ( Command cmd ) : void
cmd Command
리턴 void

RetrieveBanList() 공개 메소드

public RetrieveBanList ( string Channel ) : void
Channel string
리턴 void

SetTopic() 공개 메소드

public SetTopic ( string chan, string topic ) : void
chan string
topic string
리턴 void

Unban() 공개 메소드

public Unban ( IrcChannel Channel ) : void
Channel IrcChannel
리턴 void

Unban() 공개 메소드

public Unban ( IrcChannel Channel, string Masks ) : void
Channel IrcChannel
Masks string
리턴 void

Unban() 공개 메소드

public Unban ( string Channel ) : void
Channel string
리턴 void

Unban() 공개 메소드

public Unban ( string Channel, string Masks ) : void
Channel string
Masks string
리턴 void

Whois() 공개 메소드

public Whois ( string nick ) : void
nick string
리턴 void

WhoisSimple() 공개 메소드

public WhoisSimple ( string nick ) : void
nick string
리턴 void

this() 공개 메소드

public this ( string alias ) : Command
alias string
리턴 Command

프로퍼티 상세

CommandsByAlias 공개적으로 정적으로 프로퍼티

The Table of all Commands which exists for the use of the ReactTo() method (Filled by the Initialize() method). The keys are all possible aliases of all commands and the values are ArrayLists of Commands which are associated with the specific alias. The aliases are stored case-insensitively. Use the Remove(Command) and Add(Command) methods to manipulate this CommandsByAlias.
public static IDictionary CommandsByAlias
리턴 Command>.IDictionary

RemoteCommandPrefix 공개적으로 프로퍼티

Sets the default command-prefix to trigger this client'str commands. Set this to 0 if this client is not supposed to act like a bot.
public string RemoteCommandPrefix
리턴 string