A discord bot for Documantic Hackaton. The task was to create a bot with minigames.
If you want to use the code yourself
- Create and invite bot with
3072
permission. - Clone the repo and put bot token into the file
.token
- Setup the emojis, because they are private
- Register the slash commands with
node register.js
- Start the bot with
node .
The dependencies are the ws
, and https
modules, which are stored in node_modules
.
This bot does not use a discord lib, what I am really proud of.
As already mentioned, bot's main feature is a collection
of minigames. As for the time of hackaton, only 2 games
have been made. To play a game use
/game game:<game> action:action_play
. To read game rules use
/game game:<game> action:action_rules
.
All buttons timeout after 15 minutes of inactivity on a message.
An old puzzle game about decoding a color combination.
A real rubik's cube sent as a message to rurn around, scramble and solve.