Yet another Discord economy bot
No followers yet
Once you ship this you can't edit the description of the project, but you'll be able to add more devlogs and re-ship it as you add new features!
Last devlog :broken_heart:
Didn't feel like doing real work, so I did the programming equivalent of short form content and added fun commands.
These include random jokes, cat photos, quotes, facts and the ability to chat with an LLM (powered by ai.hackclub.com)
I brought back leaderboard with some additional styling for 1st-3rd place. Also made some other updates I think that I forgor, check commits or smt :broken_heart:
This will be the last update, I just don't care about this project anymore
I'm gonna keep it a hundred - I kind of forgot what I worked on for 6 hours (I am very sleep deprived).
What I do remember is
- removing rock paper scissors
- adding roll (roulette style game - no individual number bets. options are red 2x, black 2x and green 14x)
- improving the codebase to be more modular (the bulk of the work)
- meaning to readd leaderboard and forgetting (eta son zro)
this is the last refactor-heavy update, future updates will have more features
Made several small changes and bug fixes. To be honest I've forgotten what most of them are, but I can remember:
- fixing a bug where the balance check to check if you have sufficient funds for your wager was not called when using the rebet option on flip, allowing you to achieve negative balance
- fixing a bug where you could press other people's rebet buttons and overwrite their embed
I also added rock paper scissors which I haven't been able to fully test yet. Attached is a preview of the rock paper scissors features I could show off without involving other people. I also couldn't get a screenshot of the message that pops up when you try to use another person's rebet, but just trust me that it's there.
I'll push the code to GitHub and the live version of the bot (which now exists, go to Readme for link) once I've had a chance to test everything.
Another refactor heavy update. There was quite a few under the hood changes you won't notice, but there was also some more obvious changes.
There was a big external and internal change to how message responses are handled. There is a set of utilities (core.responses) now used for generator embed responses. This means the wording/colour of responses will now be consistent. Embeds for any kind of issue (insufficient funds, cooldowns etc) are red and all others are blue.
Any commands relating to the management of money (balance, daily etc) are now in the bank command group. The /bank transfer command was added allowing the transfer of funds from user to user.
This was just some refactoring - not much to look at here.
The biggest change was my own bespoke cooldown system. It uses a custom decorator that makes it easy to have multiple different cooldowns. It also persists across bot restarts, and some changes were made to how cooldowns are stored in the DB.
There's also just more general refactoring that nobody cares about.
Added Rebet buttons to the flip command. Instead of rerunning/retyping the whole command, you can now press a button to wager the same amount as your last bet on either Heads or Tails.
Cooldowns now also persist across bot restarts. Originally, if you claimed your daily payout and then the bot went down for some reason, you would be able to reclaim the payout even if less than 24 hours had passed. This is now fixed. Timestamps for cooldowns are also displayed through Discord dynamic timestamps instead of the original plaintext system.
Initial commit. Got a basic wallet system, daily rewards, and coinflip game setup. Everything uses slash commands. User information is stored with MongoDB, so if you restart the bot user information persists.