munar-plugin-triggers
Munar plugin for sharing reaction GIFs.
Last updated 2 years ago by goto-bus-stop .
ISC · Original npm · Tarball · package.json
$ cnpm install munar-plugin-triggers 
SYNC missed versions from official npm registry.

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:

Variable Substitution
$user Name of the user who used the trigger.
$bot Name of the bot user.
$anyone Name of a random user in the channel the trigger was used in.
$target Name 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

Current Tags

  • 2.0.4                                ...           latest (2 years ago)

10 Versions

  • 2.0.4                                ...           2 years ago
  • 2.0.3                                ...           3 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (5)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2017 © taobao.org |