A discord bot to create random Rivals of Aether Custom Color codes with preview. After invoking a bot argument, it replies with a randomly generated valid Rivals of Aether Color Code and a in-game preview image of the generated code.
- Node.js with discord.js (https://discord.js.org/#/)
- cmake
- Opencv C++ (only 4.2 tested!)
- Add config.json:
{
"prefix": "!skin ",
"token": "YOUR_DISCORD_BOT_TOKEN"
}
- Install discrod.js
npm install discord.js
- Build preview executable:
$ mkdir BuildEngine/build
$ cd BuildEngine/build
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ make
$ cd ../..
- Start yout bot:
node bot.js
├── commands # files for each command
├── data # has a subfolder for each character, skins are stored in "CHAR/skins"
├── ImageEngine
│ ├── CMakeList.txt
│ └── src
│ ├── parser.cpp # Parse character screenshot. Outdated at the moment.
│ └── preview.cpp
├── bot.js # Discord bot
├── colorcodelib.js # Color Code library used by bot.js
└── README.md
└── .gitignore