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

My first slack bot!

  • 2 Devlogs
  • 1 Total hours

This bot isn't slacking off, it replies to messages 24/7!

Open comments for this post

15m 7s logged

Added 2 more commands, advice and dogfact. Also fixed the project test link, as it was app.slack.com, now turned it into a testing channel link.

Added 2 more commands, advice and dogfact. Also fixed the project test link, as it was app.slack.com, now turned it into a testing channel link.

Replying to @yassinbs

0
3
Ship #1

I built a custom Slack bot called Helloking Bot using Node.js, Slack Bolt, and Socket Mode. The bot includes several slash commands such as /helloking, /helloking-joke, /helloking-catfact, /helloking-quote, /helloking-roll, and /helloking-coinflip.

The most challenging part was deploying the bot so it would stay online 24/7 and configuring it to run on a remote server. I also had to learn how to work with GitHub, environment variables, Linux commands, and systemd services.

I'm most proud of organizing the project into multiple command files instead of putting everything in one file. This made the code cleaner, easier to read, and easier to maintain as I added more features. ChatGPT helped teach me the basics of Slack bot development and suggested using a modular file structure, which improved the overall quality of the project.

To test the bot, use any of the following slash commands in Slack:

/helloking
/helloking-joke
/helloking-catfact
/helloking-quote
/helloking-roll
/helloking-coinflip

The bot is deployed on a Nest VM and runs 24/7, even when my laptop is turned off.

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

16m 36s logged

Trying to make a Slack bot, without useless functions, but with very handy functions.

Trying to make a Slack bot, without useless functions, but with very handy functions.

Replying to @yassinbs

0
4

Followers

Loading…