2.0.4 • Published 5 years ago

munar-plugin-triggers v2.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

munar-plugin-triggers

Munar plugin for simple custom commands ("triggers").

Installation

npm install --save munar-plugin-triggers

Usage

{
  "plugins": [
    "triggers"
  ]
}

Triggers

Add custom triggers using !trigger !triggername "response text".

Delete custom triggers using !deltrigger !triggername.

Use custom triggers using !triggername.

The response text can contain some variables:

VariableSubstitution
$userName of the user who used the trigger.
$botName of the bot user.
$anyoneName of a random user in the channel the trigger was used in.
$targetName of the user this trigger was directed at, when used as !triggername @targetUser. Defaults to the name of the user who used the trigger if they did not enter a target.
$target{default}Name of the user this trigger was directed at, but with a custom default if no target was entered. e.g., $target{nobody} to print "nobody", or $target{$anyone} to default to a random user.

License

ISC

2.0.4

5 years ago

2.0.3

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago