C# Class Squishy.Irc.Commands.Command

Basic Command Class, Inherit your Commands from here. Automatically creates one instance per IrcClient when the Class is loaded, using the default constructor.
Afficher le fichier Open project: jaddie/WCell-Utility-Bot Class Usage Examples

Méthodes publiques

Свойство Type Description
Aliases string[]

Méthodes publiques

Méthode Description
Process ( CmdTrigger trigger ) : void

Is called when the command is triggered (case-insensitive).

Méthodes protégées

Méthode Description
Command ( ) : System

In the Constructor you deliver the alias names. Calling this ctor automatically sets the Instance to the newly invoked instance.

OnFail ( CmdTrigger trigger ) : void

An array of possible server-side replies to this Command. If this command is executed, the response from the server will again be replied to the user who initiated this.

Is triggered when the processing throws an Exception.

Private Methods

Méthode Description
ExecutedNotify ( CmdTrigger trigger ) : void
FailNotify ( CmdTrigger trigger, Exception ex ) : void

Method Details

Command() protected méthode

In the Constructor you deliver the alias names. Calling this ctor automatically sets the Instance to the newly invoked instance.
protected Command ( ) : System
Résultat System

OnFail() protected méthode

An array of possible server-side replies to this Command. If this command is executed, the response from the server will again be replied to the user who initiated this. Is triggered when the processing throws an Exception.
protected OnFail ( CmdTrigger trigger ) : void
trigger CmdTrigger
Résultat void

Process() public abstract méthode

Is called when the command is triggered (case-insensitive).
public abstract Process ( CmdTrigger trigger ) : void
trigger CmdTrigger
Résultat void

Property Details

Aliases public_oe property

All Aliases which can trigger the Process method of this Command.
public string[] Aliases
Résultat string[]