You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 16, 2021. It is now read-only.
Marcel Schramm edited this page Oct 24, 2019
·
8 revisions
Cordless has a very basic scripting interface that exposes predefined
events and offers some globally callable functions.
Scripts can simply be dumped into the subfolder scripts of the cordless
configuration folder. Every file ending on .js will be parsed as a
cordless script. Whether the file is in a subdirectory or not, doesn't
matter at all.
Gets called as soon as the cordless user submits a message for sending
and allows for manipulating the message to be sent.
Parameters
Name
Description
message
The text, which was meant to be sent to the current channel.
Return value
The return value is just a single string which will be the message
that's gonna be sent in place of the value of the message parameter. If
you want the message to remain unchanged, just return the message parameter.