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

40m 51s logged

I spent this session going through lots of trouble. I did get my bot working on nest 24/7 but, since I was not complete the bot, I had to continue working on it. I don’t know how but, I completely had forgotten how Nest had worked and spent my time testing the bot locally. When I first tested the bot, running the /pass command gave a frustrating error saying the app did not respond. Looking at the code, I found out the biggest mistake was on the very first line of the /pass block. I wrote await ack; instead of calling it as a function with parentheses like await ack();. Because of this, the bot never sent that quick acknowledgement back to slack, Slack waited for three seconds and gave up. Right after that, I fixed a bug where the code tried to clean up the command text without checking if a user actually tagged anyone. When someone typed just /pass by itself, the text was blank, causing a fatal crash that broke the whole game loop. I added a safety check to use an empty string if no text is found. I also noticed my success message used regular quotes instead of backticks, which broke the user tag formatting, and fixed a simple typo in my error handling that was causing secondary crashes. I finally remembered to log in to my SSH, pull the code from Github, and update .env file with MY SECRET TOKENS >:) and setup a systemd file to keep the script running in the background. Soon, I will go back to in to completely finish and polish the /pass command in order to get rid of the timeout errors once and for all. After doing that, I will make it 24/7 and test if the game works. In the end, I will make a leaderboard system to track everyone’s stats on slack!!!

0
20

Comments 0

No comments yet. Be the first!