You are browsing as a guest. Sign up (or log in) to start making projects!

lev

@lev

Joined July 25th, 2026

  • 4Devlogs
  • 1Projects
  • 1Ships
  • 5Votes
Open comments for this post

1h 9m 41s logged

I found some workarounds to the laggy HTTP requests that the Discord API makes. The timeout kept getting delayed by 10-20 seconds at certain sequences due to failed requests, which made the bot hard to use. I decided to implement a single global timer that persists across all game objects in order to manage the timeout, preventing users from getting more time than they should to answer a round.

0
0
4
Ship

I made the 24-game discord bot mainly for my nerdy math friend group to play a fun math game while hanging out on Discord. We couldn’t find ANY discord bots that have this feature, so I decided to make one myself. I believe that the olympiad math community servers might find this fun.

The most challenging part of this is probably getting the evaluation feature working well, as it needs to check the validity of, AND calculate a user’s mathematical expression to see if it equals 24.
I’m mostly just proud of being able to finish and make it working. It’s not particularly an impressive achievement, but it IS one more step in my coding journey!

Testing the project is really simple, just join the linked demo Discord server and use the /game command! You can also invite the bot to your own server using the link posted in the Github repo’s Readme.

This bot is intended to be minimalistic, but any feedback for new features is appreciated!

  • 3 devlogs
  • 6h
Try project → See source code →
Open comments for this post

1h 38m 44s logged

Added scoring to the 24-game bot. It keeps track of player’s score in a leaderboard that is shown in the end. Also, I added a parameter to the slash-command that lets you specify how many rounds to play the game for.

Currently a bug where the timeout gets delayed by up to 30 seconds, not sure if it’s my wifi’s issue or some sort of inefficiency in my code…

0
0
5
Open comments for this post

3h 26m 36s logged

24-game discord bot.
Create a basic game function to my 24-game bot that creates a single round from 4 numbers. Used nlile’s 24-game dataset on HuggingFace to get the valid number combinations, in order to avoid a ton of unecessary coding.
Right now it has one command: /game, and pressing on “enter answer” opens a Discord Modal. It is able to check for syntax errrors, invalid operations, disallowed numbers, etc.

0
0
17

Followers

Loading…