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

Open comments for this post

1h 57m 31s logged

A Lot Of DuckDuckGoing

Shortly after my last devlog I found out about Slack block kits. It took a bit of trial and error but I managed to make a matrix of buttons which I will use as the board itself.

The action_id troubles

I wanted to be able to see which button was pressed. For this I was going to use the action_id from the response payload. It took me a while to figure out how to get it because action_id is not a part of body (either is response_url and many other values that are actually a part of body) according to VScode but they actually are.

Ephemeral Messages

I figured that the board shouldn’t be able to be interacted with by anyone so I got the idea to make the message “Only visible to you”. It took me a bit of DuckDuckGoing to get it to work but it works.

0
0
1
Open comments for this post

2h 1m 55s logged

Decisions, decisions

My first decision was to rewrite the bot in Typescript because I have a bit more experience with it. It took a bit of troubleshooting but I got it working in the end.
My second decision was to decide the command syntax. After very little thought I came up with /slickslacksloe command [argument] .
This basically means that commands have the syntax /command [argument] but with the prefix slickslacksloe so it’s actually findable in Slack.
The first command I made was the /slickslacksloe help command. It displays all available commands and gives a short description.
I still haven’t fully decided about how I should show what values arguments can have. Right now its <value1, value2, valueN> but it’s not super clear and it’s a bit ugly.

What’s next?

I will make a pfp for the bot but that will probably take a while to get to. I’m thinking that the next step will probably be making some tic-tac-toe logic. Storing the board, handling win/lose conditions, and handling several games (from different) users at the same time.

I might rework it a bit and make the only command start and make the game be controlled with reactions but I’m not sure.

0
0
2
Open comments for this post

23m 39s logged

The Journey Begins

I followed the first half of the Slack bot guide.
I had some errors because I used quotation mark instead of a backtick. Time to start working on the tic-tac-toe logic.

0
0
45

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…