|
|
|
|
|
Description |
Convenience functions on top of Yogurt.Mud.
|
|
Synopsis |
|
|
|
|
Re-exports
|
|
module Network.Yogurt.Mud |
|
Hook and timer derivatives
|
|
|
Creates a hook that watches messages headed to the terminal. When fired, the message is passed on to the terminal and the action is executed.
|
|
|
Like mkTrigger, but fires at most once.
|
|
|
mkAlias command subst creates a hook that watches messages headed to the remote MUD. If the message is or starts with the word command, the command is replaced by subst before being sent to the MUD.
|
|
|
Like mkAlias, mkArgAlias command subst creates a hook that watches messages headed to the remote MUD. But here the whole message is substituted instead of just the first command word, and the substitution depends on the command's arguments.
|
|
|
Like mkAlias, but instead of substituting the command, a program is executed.
|
|
|
Creates a timer that fires only once.
|
|
Sending messages
|
|
|
Sends a message to the terminal, triggering hooks.
|
|
|
Sends a message appended with a newline character to the MUD, triggering hooks.
|
|
|
Sends a message to the terminal, without triggering hooks.
|
|
|
Sends a message appended with a newline character to the terminal, without triggering hooks.
|
|
|
Sends a message appended with a newline character to the MUD, without triggering hooks.
|
|
|
Sends a bell character to the terminal.
|
|
Logging
|
|
|
|
|
startLogging name causes all messages to be logged in a file called name-yyyymmdd-hhmm.log. The used hooks have priority 100.
|
|
|
Stops the logger.
|
|
Miscellaneous
|
|
|
When called from a hook body, gives hooks that haven't been considered yet a chance to match on the currently triggering message. Useful if you want to build a hook that only has a side-effect and doesn't want to directly affect the other active hooks.
|
|
|
Like matchMore, but allows specification of the message that is passed on.
|
|
|
Like matchMoreOn, but also makes the currently firing hook eligible for firing again.
|
|
|
Executes a shell command.
|
|
Produced by Haddock version 2.3.0 |