A fun and competitive word game on Slack at #word-chain
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 finished setting up on Nest without errors. It took a while to fix the errors which I have NO idea why they were happening. It gave no debug. All it said was that it failed to start. I eventually just made a wrapper and rage quit. I hate systemd. But the bot now FULLY works with more reliability to recover some data after crashes or restarts.
And it is fixed. The word chain bot now fully works to restore progress before the bot crashes. It doesn't bring used words or last person because used words would take up too much storage and I'm too lazy to add last person. I was only supposed to spend one hour but spent like 3, so fun. This is the average programming experience.
I fixed most errors that caused the bot to not even respond but now it works. So yay. Now I just need to make sure that it actually does what it is supposed to when crashing.
I'm trying to fix my errors but they just keep on stacking. As soon as I fix one, another appears. Some of them are just typos though. And nest crashed too so now I have to configure cloudflare tunnels to my computer which will take like an hour. Yay! So much fun when developing!
I think the error I am getting is because of the empty string in the table being returned so I can try removing it to see if that fixes or not. Hopefully it does.
I tried deploying to nest but it did not work. I will debug tomorrow. I also fixed many other bugs as well. Reminder to add channelId_ACTIVE tomorrow. Hopefully I will see this reminder.
I added a saver so that if the bot crashes or goes offline then it saves and uses that the next time it is online. I am going to pray this works.
I added a channel debugging feature so that people self hosting the bot don't need to SSH or open their terminal to see what went wrong. Also fixed the other start game bug. Still need to make it more competitive though, maybe later.
Finished v1.1
This version fixed MANY bugs like the bot randomly crashing because it tries to reply in a channel it isn't in, and other stuff I can't remember.
But I also cleaned up the scripts a lot and added some other files to help with self-hosting.
Also added some more commands to help with developing and setting up the bot.
I finally finished the passive version of the not. V1 is now done. Added ton more things.
Renovated the basics and now it should be better. I have to use another port separately just for slash commands because slack bolt's message function thingy didn't work so I have been using express to receive event subscriptions. So since I had another port, that meant I needed to expose it again and you can't really use two cloudflare tunnels on the same host to I decided to not be lazy and get ngrok and it is way faster, but only one agent at a time. Also I am planning on making this game a competitive one, not passive.
TL;DR
* Added some slash commands
* Can't use the same word again
* Some other things I probably can't remember
I finally got the basics of the bot to work and it now checks if the first letter of the new word matches the last letter of the old one and actually is an English word in the dictionary. Also got it to use reactions.
I spent way too much time getting this bot to work but I made a ping slash command which replies with pong and when you mention the bot it gets mad. I had to set up a cloudflare tunnel and find a workaround to some bolt commands but got it to work somewhat in the end.