A bot for connecting Twitch with Clash of Code (CoC)
& is assumed as a prefix here, [argument] are arguments
@[bot name] prefix [new prefix] - If admin: sets the prefix, otherwise displays the current prefix.
&link - Displays the current CoC link, if one was created.
&new [modes... languages...] - If admin: creates a new clash, using all arguments to try to find the modes and languages.
&start - If admin: starts the clash created with &new.
&eval [code...] - If admin: evaluates the code passed.
The code loads the configuration from config.json - An example config can be found in config.json.example; a description of the fields can be found in config.json.default (or by looking at the code...)
@bot prefix -->
-->new reverse javascript
-->link
-->start
Use ESLint.
If you're using Sublime Text, you should install the ESLint
package, as well as the SublimeBuildOnSave
package, both from Package Control.
Also, since there's no rule in ESLint for this:
- Please don't put spaces before parentheses in stuff like ifs, whiles, and whatnot.
Open an issue or PR.