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

My first slack bot!

  • 2 Devlogs
  • 3 Total hours

A Slack bot built with Python and Slack Bolt that runs 24/7 on a nest server using Socket Mode. It responds to a set of custom slash commands including a ping latency checker, coin flip, dice roller, and motivational quote generator. Originally based on a JavaScript guide, the project was converted to Python.

Ship #1 Pending review

**What did you make?**
A 24/7 Slack bot built in Python that responds to custom slash commands like `/slck-coin`, `/slck-dice`, `/slck-ping`, and more. Runs on a nest server using Socket Mode.
---
**What was challenging?**
The guide was in JavaScript so I had to convert everything to Python first. Getting the bot installed into an actual Slack workspace was also way more difficult than expected because I did not know what to do.
---
**What are you proud of?**
After AI explained and taught me the syntax that I needed I mostly did it myself.

**What should people know to test it?**
You can just click on my demo link and test it by joining the slckbot channel.
---
You'll need your own Slack app and workspace. Full setup is in the README — once you add your tokens to .env, just run python slackbot.py, invite the bot to a channel, and try any /slck- command.

Try project → See source code →
Open comments for this post

42m 49s logged

#Devlog #2

I actually did this a while ago but I was waiting for the ship function and I also did not have a demo link.

I added 2 things:

#1: I added slck-motivate
#2: I added slck-shrug


I also updated /slck-list. I removed /slck-time because it took the local time of the nest server rather than whichever device /slck-time was run on. The code is still in VS code but /slck-time is removed from the commands.


I could not post devlogs because I had a bug where hackatime and stardance challenge were not syncing properly but It got fixed.

#Devlog #2

I actually did this a while ago but I was waiting for the ship function and I also did not have a demo link.

I added 2 things:

#1: I added slck-motivate
#2: I added slck-shrug


I also updated /slck-list. I removed /slck-time because it took the local time of the nest server rather than whichever device /slck-time was run on. The code is still in VS code but /slck-time is removed from the commands.


I could not post devlogs because I had a bug where hackatime and stardance challenge were not syncing properly but It got fixed.

Replying to @Justin-F

0
1
Open comments for this post

2h 26m 58s logged

Finished 5 commands and runs 24/7. Now I just need a demo website. :p

Finished 5 commands and runs 24/7. Now I just need a demo website. :p

Replying to @Justin-F

0
1

Followers

Loading…