Bingo!: My First Slack Bot
- 2 Devlogs
- 4 Total hours
A simple slack bot that has a couple of useful commands.
A simple slack bot that has a couple of useful commands.
So this time, I decided to add a new command based on the suggestion someone left me: a command that allows you to convert your current time to another time zone of your choosing. It took me a while to get it working, which was mainly due to the fact that I had very little idea how to do it. However, I did get it after some time.
The next issue came when it was time to update Bingo!, and I spent a good 30 to 45 minutes just trying to figure that out, but this was mostly me not reading the guide properly.
Also, I decided to revamp my color palette command because the original command looked very basic to me. However, I was not prepared for how difficult it would be to update. Originally, I just tried using Slack’s Block Kit Builder, which worked okay, but it didn’t quite give me what I was looking for. All of the color swatches were tiny, and what I wanted was to have those images with all of the colors neatly arranged. So, after searching for a while, I ended up using QuickChart to generate a custom bar chart using the hex codes for the colors. Even then, I encountered a lot of bugs that took me a while to fix, and most of the time, it was usually me forgetting to add some syntax to the code.
What do you think I should add next?
Starting Out:
Okay, so I think this is the first dev log I have ever made and also the first time I’m using JavaScript, so forgive me if my code looks very messy. So far in my slack bot, I have six commands currently available: help, ping, catfact, forecast, colorpallete, and joke.
Forecast took me an absurdly long time to make because I had no idea what I was doing. It took me like halfway through making it to realize that I could just use console.log() to help debug, which made it a whole lot easier to see what went wrong. An example of the command is attached to this post.
I’m not sure what else to add or work on for the slack bot, so it would be great if I could get some suggestions. Also, some advice in regard to JavaScript would be amazing because I still know very little about the language.