8%

MAPLE BOT

Discord minigame bot based on the AOPS Reaper game. Made using the Discord.js library and stored realtime game data on the backend using MongoDB Atlas.

DEC 2020

ABOUT THIS
PROJECT

Maple is a Discord bot I created based on the online game Reaper by AOPS. I recreated the game as a Discord bot to allow me and my friends to easily play it in our private Discord server. The objective of the game is to reap the most amount of points, and points acumulate over time passively. But when a player reaps points, the amount resets back to 0, and starts acumulating again.

On the technical side, I created the Discord bot using the discord.js library. As for storing game info, I used the cloud database MongoDB Atlas to store the realtime game data. In order to track time, the bot will check the last reaped time in the database and return time since then. To spice the game up, I've added a karma system where users can donate their points to other users for a higher chance to gain bonus points in the future and this info is also stored in the database in a document tied to the player's Discord ID. When a user wins a game, their win is stored in a permanent section of the database, and the game data is cleared for another game.

I've designed the bot to work for infintely many servers, since each server gets its own collection in the MongoDB. So if you want to add the bot to your server, go ahead and use this link: Link. Once added, make a channel named #maple, and add a role to yourself called "Maple Admin". Then simply run help in the #maple channel, and you're ready to play!