@CosmicCraft on My first slack bot!
What did you build?
I created a custom Slack bot using Node.js and @slack/bolt framework on a Hack Club Nest Linux server that constantly works as a systemd background process and reacts to slash commands all day long.
What was tricky?
Working in the Linux command line was difficult at first. I had to find out how to SSH using IPv6 address, fix the npm installation failure due to the lack of a package.json file and securely create .env variables directly in the server using nano editor.
What are you proud of?
The thing I am proud of is the ability to run my bot constantly in the background. Creating a systemd file for the first time and seeing the status “active (running)” on the server means I have managed to deploy an application that works constantly.
What should people know to test your project?
In order to test the project, one has to join the workspace with the bot on Slack and use the slash command. As it works constantly on Nest, it will instantly respond without any need of my laptop being turned on.
- 1 devlog
- 0h
- Make a Slack Bot