echo
Example plugin, echos your words back at you.
Author: Accalia
License: MIT
- echo
- .plugin(forum) ⇒
Plugin- ~echo(command) ⇒
Promise - ~activate() ⇒
Promise
- ~echo(command) ⇒
- .plugin(forum) ⇒
echo.plugin(forum) ⇒ Plugin
Plugin generation function.
Returns a plugin object bound to the provided forum provider
Kind: static method of echo
Returns: Plugin - An instance of the Echo plugin
| Param | Type | Description |
|---|---|---|
| forum | Provider |
Active forum Provider |
- .plugin(forum) ⇒
Plugin- ~echo(command) ⇒
Promise - ~activate() ⇒
Promise
- ~echo(command) ⇒
plugin~echo(command) ⇒ Promise
Echo the command contents back to the user
Kind: inner method of plugin
Returns: Promise - Resolves when processing is complete
| Param | Type | Description |
|---|---|---|
| command | Command |
The command that contains the !echo command |
plugin~activate() ⇒ Promise
Activate the plugin.
Register the command echo to the forum instance this plugin is bound to
Kind: inner method of plugin
Returns: Promise - Resolves when plugin is fully activated