Skip to content

rozbrajaczpoziomow/coc-bot-electric-boogaloo

Repository files navigation

CoC Bot: Electric Boogaloo

A bot for connecting Twitch with Clash of Code (CoC)

Commands

& 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.

Configuration

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...)

Example usage

@bot prefix -->
-->new reverse javascript
-->link
-->start

Contributing

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.

Questions / bugs?

Open an issue or PR.

About

CoC Bot: Electric Boogaloo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published