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

My first slack bot Zbot

  • 3 Devlogs
  • 2 Total hours

10:10 AM This is zBot, a custom Slack bot built with Node.js and Slack Bolt using Socket Mode. It runs on your computer or a server and connects to your own Slack app using tokens from your workspace. It responds to seven slash commands: zping checks if the bot is online, zquote sends a random quote, z8ball answers yes or no questions, zstandup lets you log or view a daily task note, zremind sets a personal reminder that messages you later, zflip flips a coin, and zroll rolls a dice. To use it, you create your own Slack app from the provided manifest file, get three tokens from Slack, put them in a file called dot env, then run the bot with npm start. For it to stay online all the time, you deploy it to a hosting service like Hack Club Nest instead of running it on your own laptop.

Open comments for this post

26m 2s logged

I started building my Slack bot with Bolt, setting up authentication through environment variables and adding quote and Magic 8-Ball response collections. Next, I’ll connect commands and events to make the bot interactive.

I started building my Slack bot with Bolt, setting up authentication through environment variables and adding quote and Magic 8-Ball response collections. Next, I’ll connect commands and events to make the bot interactive.

Replying to @NITHIN

0

Followers

Loading…