emoji
MobileEmoji module. Responsible for automatically replacing emoji with Discourse emoji codes
- emoji
- .description
- .configuration
- .name
- .priority
- .version
- .begin(browser, config)
- .registerListeners(callback)
- .onMessage(message, post, callback)
emoji.description
Description of the module
Kind: static property of emoji
emoji.configuration
Configuration properties.
Kind: static property of emoji
Properties
Name | Description |
---|---|
enabled | Whether to use MobileEmoji or not. Defaults to false. |
emoji.name
Name of the module
Kind: static property of emoji
emoji.priority
Priority of the module
Kind: static property of emoji
emoji.version
Module version
Kind: static property of emoji
emoji.begin(browser, config)
Bootstrap the module.
Kind: static method of emoji
Param | Type | Description |
---|---|---|
browser | object |
The Discourse interface object |
config | object |
The SockBot config object |
emoji.registerListeners(callback)
Register the required listeners.
Kind: static method of emoji
Param | Type | Description |
---|---|---|
callback | function |
The callback to use once the action is complete |
emoji.onMessage(message, post, callback)
Handle received messages.
Kind: static method of emoji
Param | Type | Description |
---|---|---|
message | object |
An object representing the message that was received |
post | object |
An object representing the post that the message was about |
callback | function |
The callback to use once the action is complete |