/rubiks-cube-for-discord

Image driven co-operative rubik's cube solving bot for Discord.

Primary LanguagePythonMIT LicenseMIT

Rubik's Cube for Discord

Try It out in My Server

https://discord.gg/XbCaFr6

Add It to Your Server

https://discordapp.com/api/oauth2/authorize?client_id=348589326206238730&permissions=3072&scope=bot

Commands

  • !rubik lists the available commands.
  • !hands performs the moves affixed to it, e.g. !hands R F2 x R' will rotate the right face 90° clockwise, rotate the front face 180° clockwise, revolve the cube on it's x axis 90° then rotate the right face 90° counterclockwise.
  • !solve solves the cube.
  • !text displays the current cube configuration in text format.
  • !jumble jumbles the cube.
  • !custom configures the cube with a valid string of 54 colour characters.

Preview

        Imgur Image

Setup

  • Run schema.sql.
  • Create a file called secret.py and fill it with the your own discord token and database credentials. Imgur Image
  • Run this code in the rubiks-cube-for-discord directory:
    $ sudo -H pip3 install -r requirements.txt
    $ python3 bot.py