This is the custom bot originally created for the Cubing@Home Discord server, but constantly expanding with more cubing-related features.
Please see the docs for command documentation.
Please open an issue in this repo using bug_report.md and clearly describe the issue. To request a new feature, please use feature_request.md.
The code in /utils/scrambling is primarily from cs0x7f/cstimer. The kilo scrambling is adapted from this gist, from @xyzzy on the speedsolving forums, found in this thread.
The logic in /utils/visualizer is also from cs0x7f/cstimer, specifically the Draw Scramble
tool function. However, it is heavily edited so that it works with canvas-node
rather than the intended web canvas. It can also be used stand-alone as a way to generate scrambles for almost any event using Node JS. The main function in image.js
returns an image buffer, but can be modified to return a png, canvas object, etc..
The icons in /utils/icons are from cubing/icons, converted to png because of how annoying it is to use svgs in Discord.js embeds.
Other resources used include:
- World Cube Association API, for
wca
command - alg.cubing.net, for
scramble
links - Country Flags API, for the flags used in
wca
command