C# Class Squishy.Irc.Commands.CmdTrigger

CmdTriggers trigger Commands. There are different kinds of triggers which are handled differently, according to where they came from.
Mostrar archivo Open project: jaddie/WCell-Utility-Bot Class Usage Examples

Public Methods

Method Description
CmdTrigger ( ) : System
CmdTrigger ( Squishy.Network.StringStream args ) : System
CmdTrigger ( Squishy.Network.StringStream args, IrcUser user, IrcChannel chan ) : System
MayTrigger ( ) : bool
MayTrigger ( Command cmd ) : bool
OnServerResponse ( string sender, string action, Squishy.Network.StringStream remainder ) : bool

Is called on a response from the server

Reply ( Object format ) : void
Reply ( string text ) : void

Replies accordingly with the given text.

Private Methods

Method Description
NotifyServResponse ( string sender, string action, string remainder ) : bool

Method Details

CmdTrigger() public method

public CmdTrigger ( ) : System
return System

CmdTrigger() public method

public CmdTrigger ( Squishy.Network.StringStream args ) : System
args Squishy.Network.StringStream
return System

CmdTrigger() public method

public CmdTrigger ( Squishy.Network.StringStream args, IrcUser user, IrcChannel chan ) : System
args Squishy.Network.StringStream
user IrcUser
chan IrcChannel
return System

MayTrigger() public method

public MayTrigger ( ) : bool
return bool

MayTrigger() public method

public MayTrigger ( Command cmd ) : bool
cmd Command
return bool

OnServerResponse() public method

Is called on a response from the server
public OnServerResponse ( string sender, string action, Squishy.Network.StringStream remainder ) : bool
sender string
action string
remainder Squishy.Network.StringStream
return bool

Reply() public method

public Reply ( Object format ) : void
format Object
return void

Reply() public abstract method

Replies accordingly with the given text.
public abstract Reply ( string text ) : void
text string
return void