Context for operations used by command methods.
diggler.command.CommandSet subtypes an instance
of this type, allowing command methods to access
the properties and methods of this type without
any preceding qualification.
Some operations are synchronous, non-blocking operations;
they may time a significant duration of time to complete,
but they do not block the thread from handling other events,
such as other command invocations.
Create a new context from an existing one, but with a different originating channel/user.
Context ctx | existing context to copy |
string target | channel name or user nick name |
The current bot.
The user that invoked the command.
The channel the command was invoked in.
Throws an exception if the command originated from a private message.
Boolean whether or not the command was invoked from a private message.
Reply to the channel in which the command was invoked. If there is more than one argument, the first argument is formatted with subsequent ones.
If the command originated in a private message, the reply is sent to the invoking user as a private message.
Wait the given length of time before returning.
This is a synchronous but non-blocking operation.
Result of Context.whois.
Lookup more information about the user for the given nick name.
This is a synchronous but non-blocking operation.
string nick | nick name of user to lookup |
Disconnect from the current network with the given message.
char[] msg | comment sent in quit notification |