trwtf
TRWTF module. Tells people they are TRWTF
- trwtf
- .description :
String
- .configuration :
Object
- .name :
String
- .priority :
Number
- .version :
String
- .onNotify(type, notification, topic, post, callback)
- .begin(browser, config)
trwtf.description : String
Brief description of this module for Help Docs
Kind: static property of trwtf
trwtf.configuration : Object
Default Configuration settings for this sock_module
Kind: static property of trwtf
trwtf.name : String
The name of this sock_module
Kind: static property of trwtf
trwtf.priority : Number
If defined by a sock_module it is the priority of the module with respect to other modules.
sock_modules should not define modules with negative permissions. Default value is 50 with lower numbers being higher priority.
Kind: static property of trwtf
trwtf.version : String
The version of this sock_module
Kind: static property of trwtf
trwtf.onNotify(type, notification, topic, post, callback)
Runs on notification. If there is a mention of this bot, replies with the canned text.
Kind: static method of trwtf
Param | Type | Description |
---|---|---|
type | string |
The type of event. Only responds if this is 'mentioned' |
notification | string |
The notification to respond to |
topic | string |
Unused. |
post | string |
The post the notification was for |
callback | function |
The callback to notify when processing is complete. |
trwtf.begin(browser, config)
Bootstrap the module
Kind: static method of trwtf
Param | Type | Description |
---|---|---|
browser | string |
discourse. |
config | object |
The configuration to use |