A game you can play in the Hack Club Slack! This is a slackbot that uses slash commands to operate the game. Join a team, Hack Grub or Snack Club, and collect items every day to fight the other team and earn points! Run `/grubwars-join` in #grubwars-event. It's still a work in progress but is playable and will be improved as time goes on.
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!
I fixed an error that occurred when you have no items in your inventory - it would attempt to build a block kit menu without options when you went to use/throw! Of course, this would fail and almost crash the bot. This is now fixed, and this update also brings some comments to explain what is going on.
Added bullying power, the last item you can obtain by random chance! There are more items you can obtain through the shop I will make later, but this is the last normal item. If a bullying power effect (which doesn't expire) is applied on a person 3 times by any 3 (or fewer) people, that person loses ALL their items! It's kinda fun actually but is intentionally devastating and hard to do! I hope it happens at least once in the grubwars event :]
I just added trash grabbers to the game! Using them gives you 50 points, while throwing them allows you to steal one item from a target. To make this possible, I had to add another level of complexity to the bot - delaying the result of throwing it. When the user hits Throw (or whatever), usually everything processes and the result is shown immediately. However, the trash grabber requires you to select WHICH item to steal, so it has to delay the response. This subprocessing now works. :]
Pizza boxes have now been implemented! To use 1 pizza box, you also need 4 pizza slices which will also be consumed, and you get 75 points. If you throw a pizza box (no pizza required), the target loses 20 points and between 2 to 4 pizza slices.
Wine is finally complete as an in-game item! It is now makeable, usable, and has effects. Wine is actually one of the most complicated in-game items. This update finishes adding it and updates the README to reflect the new addition.
Disclaimer: don't drink underage, or preferably don't drink at all. This item has been added to the game as a fun & slightly overpowered item, and should NOT be seen as an influence.
Adding wine has become a series of devlogs! It's an especially complicated item in-game. This devlog enables you to create and use/throw wine, along with adding the effects. However, the effects have yet to do anything. That's for next time, and that's exactly why the _changeScore function was modified. Now this should be something that's pretty easy to do. Key word, should. Let's see how it goes 😅
Internal changes again, the _changeScore function has now been UPDATED to include more information to better process requests 😌
This also simplifies the usage of the function and will enable it to be easier to manage more complicated items like Wine in the future. Compare this screenshot with yesterday's screenshot to see the difference in the function arguments.
Pretty small change today, just fixed a typo in the readme (Pizza refers to pizza slice, not pizza box, which could be confusing) and added a preemptive comment for future me so that I can make the proper changes to the _changeScore function! See the image for comment content.
Added lemon drizzle cakes, which means now there is a method to handle score manipulations (like multipliers, which is what the drizzle cake does).
Data pruning now works! If you have 0 of something, or an effect has expired, that data will no longer be present in the data file! Next devlogs are (probably) just going to be feature additions, getting more items into the game and maybe even introducing a shop!
Last devlog, effects were being processed, but there were no effects to process. Now, you can use/throw sporks, which apply effects! Use a spork = 5% accuracy boost for 1 hour (self), throw a spork = 10% accuracy nerf for 2 hours (target). Next devlog is probably going to be me figuring out how to prune the grubwars event object of data that is no longer relevant.
Now we are processing effects! Effects are temporary adjustments to things a player does. For example, if you use a 'spork', you will get a 5% boost in throw accuracy for an hour. It is now processing basic effects, although there are none because none of the effect-causing items are supported yet. That's for future development :]
My project's cert was rejected, so I took a break and now I'm BACK! Let's see if this slower and more careful development will keep bugs away :')
Pizza slices are now throwable! README.md has been updated to only show what is actually done, so that any certifiers are not confused :')
Finally, game features have been added. Use/throw is now working for basic items! Sooner or later, (probably later) functionality will be added for the more advanced items, but for now that's a working prototype and is now playable. Go test it in #grubwars-event!
Uhhh new update but no new features because-- I have finally set up the production environment (bot hosting on Nest)! Idk what to call it but I have finally traversed the annoying difficulties of Nest (I love Nest but why is it so difficult to figure out??) and now it is ready to switch back and forth from development to production easily 👍
This 1 hour of work is not enough to represent the multiple hours of terror trying to figure out Nest environment variables, bashrc & aliases, Caddy, systemd, croc, 7z, and so so much more that I'm not going to write out here. Anyways I'll take the 1 hour and leave it at that. NEXT UPDATE will be the one where you see features 🙏 trust (yes I said that the last two times but this time it'll happen fr)
Not yet playable, but progress made! I also have officially hit the 10h mark 🥱 long way to go still... anyways
/grubwars-help is now here! It's pretty comprehensive so now I'm hoping people don't get confused. But don't be fooled, it was so much work for some reason cough BLOCK KIT cough. Also /grubwars-dev is now documented, although it's not usable lol.
Next update should be game features. Yeah, I said that last time, but hopefully this time it's true. Plan: create claim functionality and then use functionality for basic items, and add items as time goes on. I only have until Converge ends (12am of July 16, 2025) so by then it'll definitely be playable, but I will keep working on it and finish the game before summer ends. :] Wish me luck!!
Oof, so much groundwork to be done before even one command can be made. Here's what I set up:
- database file in /data/grubwars.json (not committed)
- hourly backup system just in case my program corrupts the data file (so max gameplay loss is one hour, which isn't much given how slowly the game should be played)
- logging system to keep track of what's going on
Only then did I add /grubwars-join, the command by which anyone can join the GrubWars game!
That was the first four-ish hours. Then, in the last 3, I improved /grubwars-join and added /grubwars-stats. Stats lets you see others' score, inventories, active effects, and team affiliation. These are the two public commands I have now (not including /grubwars-dev, limited only to devs). I also improved the logging system further :] I do realize that's a lot of extra work only for me to never look at the log, but whateverrr lol
In the first 7 hours, most of the work done was groundwork to allow the rest of the game to be more easily develop-able. Hopefully, in the next devlog, you'll see some game features!
(oh, and README.md is filled with fancy descriptions of items that don't get exist 😅)
This is all taking quite the while because I'm really new to Slack bot stuff w/ Bolt.