This command triggers a SQL query against a MySQL compatible database.
- Type
/fusebot edit run-query
. - Click the edit link.
- Copy and paste the command.js file content into the command.js file in the web editor.
- Add
"promise-mysql": "5.0.3"
into package.json as a dependency. - In the Configuration section of the editor, set the HOST, PORT, USERNAME, PASSWORD property.
- Save.
- Call
/fusebot run-query
from Slack/Discord. - Modify and tinker!