Minor update. Just a bugfix actually. Finally figured out why username capitalisation was weird. This also fixes the recovery time working correctly
All-in-one installation/update: challengeSystem.zip (16.8 KB)
Instructions: Simply unzip into the base directory of PhantomBot and let it overwrite any files. Restart the bot and you’re done.
Individual files (Advanced users)
./scripts/custom/games/challengeSystem.js (Core game file, 21.3 KB)
./scripts/lang/custom/games-challengeSystem.js (Language file, 8.3 KB) (Edit this if you want your own movesets and theming. Directions in in-file comments)
./script/core/panelCommands.js (Overwrite, needed for the controlpanel to be able to update the settings live, 16.0 KB)
./web/panel/js/gamesPanel.js (Overwrite, Backend of the controlpanel, allows the settings to be read from/written to the Database, 19.6 KB)
.web/panel/games.html (Zipped, Overwrite, This is the actual controlpanel file, 3.4 KB)
Keep in mind that updating PhantomBot will overwrite the files marked with Overwrite
As far as I’m concerned, this is perfect now.