summoner
Summoner plugin
Watches for @mentions and replies with a canned response
Author: Accalia
License: MIT
- summoner
- .defaultConfig
- .mentionHandler(_, topic, post)
- .prepare(config, _, events, browser)
- .start()
- .stop()
summoner.defaultConfig
Default plugin configuration
Kind: static property of summoner
- .defaultConfig
- .cooldown :
Number
- .messages :
Array.<string>
defaultConfig.cooldown : Number
Required delay before posting another reply in the same topic.
Kind: static property of defaultConfig
defaultConfig.messages : Array.<string>
Messages to select reply from.
Kind: static property of defaultConfig
Default: ["@%username% has summoned me, and so I appear.","Yes master %name%, I shall appear as summoned.","Yes mistress %name%, I shall appear as summoned."]
summoner.mentionHandler(_, topic, post)
Respond to @mentions
Kind: static method of summoner
Param | Type | Description |
---|---|---|
_ | external.notifications.Notification |
Notification recieved (ignored) |
topic | external.topics.Topic |
Topic trigger post belongs to |
post | external.posts.CleanedPost |
Post that triggered notification |
summoner.prepare(config, _, events, browser)
Prepare Plugin prior to login
Kind: static method of summoner
Param | Type | Description |
---|---|---|
config | * |
Plugin specific configuration |
_ | Config |
Overall Bot Configuration (ignored) |
events | externals.events.SockEvents |
EventEmitter used for the bot |
browser | Browser |
Web browser for communicating with discourse |
summoner.start()
Start the plugin after login
Kind: static method of summoner
summoner.stop()
Stop the plugin prior to exit or reload
Kind: static method of summoner