GrubWars

GrubWars

4 devlogs
18h 36m
Created by Lakshya Raj

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.

Timeline

Ship 1

0 payouts of shell 0 shells

Lakshya Raj

24 days ago

Lakshya Raj Covers 4 devlogs and 18h 36m

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!

Update attachment

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)

Update attachment

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!!

Update attachment

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.

Update attachment