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

My first slack bot!

  • 1 Devlogs
  • 2 Total hours

I building a custom Slack utility bot using Node.js (Bolt framework) to automate interactive tasks and commands within my workspace.

Ship #1

Slack Utility Bot
A simple and lightweight Slack bot built with Bolt for JavaScript that adds a collection of fun and useful slash commands to any Slack workspace. I created this project to learn how Slack bots work, practice asynchronous JavaScript, and gain experience deploying Node.js applications on Linux.
Features
The bot currently supports the following slash commands:
/for-ping — Check the bot's response time.
/for-catfact — Receive a random cat fact.
/for-flip — Flip a virtual coin.
/for-choice — Randomly choose one option from a list.
/for-reverse — Reverse any text you provide.
/for-color — Generate a random HEX color.
/for-mock — Convert text into the classic SpOnGeBoB mocking style.
/for-rate — Rate anything on a scale from 0 to 10.
/for-nothing — Returns... absolutely nothing.
/for-help — Show all available commands.
Why I Built This
I wanted to create a small but practical Slack application that combines useful utilities with a few fun commands. The project also gave me hands-on experience with Slack's API, Node.js, and deploying services on a Linux server.
What I Learned
Building this project helped me improve several important skills:
Working with async/await and asynchronous JavaScript.
Developing Slack applications using the Bolt for JavaScript framework.
Creating and handling Slack slash commands.
Managing sensitive credentials securely with environment variables (.env).
Running Node.js applications as persistent services using systemd on Linux.
Debugging applications with journalctl and implementing proper error handling.
Organizing a small project into maintainable and reusable modules.
Technologies Used
Node.js
Bolt for JavaScript
Slack API
Axios
dotenv
Linux (systemd)

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

1h 32m 2s logged

I am building a custom Slack utility bot using the Bolt for JavaScript framework. It runs on a Linux server (Nest) and provides a variety of interactive slash commands to automate tasks and add utility to my workspace.Here are the commands I have implemented:/for-ping - Checks the bot’s latency./for-catfact - Fetches a random, interesting fact about cats./for-flip - Flips a digital coin./for-choice - Randomly selects an item from a provided list./for-reverse - Reverses the input text./for-color - Generates a random HEX color code./for-mock - Converts text into “mocking” (sPoNgEbOb) style./for-rate - Rates an object on a scale from 0 to 10./for-nothing - A command that returns “nothing.”/for-help - Displays the list of all available commands.I am hosting this bot on my Nest server, using systemd to manage it as a background service to ensure it stays online continuously.

0
0
14

Followers

Loading…