I made a rudimentary slack bot with a focus on productivity functions.
The key functions:
/tbot-ping — Checks bot responsiveness and displays latency.
/tbot-catfact — Fetches and returns a random cat fact.
/tbot-joke — Fetches and returns a random joke.
/tbot-weather — Retrieves and displays current weather information.
/tbot-todo add — Adds a task to the user's todo list.
/tbot-todo list — Lists all tasks in the user's todo list.
/tbot-todo remove — Removes a task by its number.
/tbot-todo clear — Clears the user's entire todo list.
/tbot-help — Displays the list of available commands.
This project was quite interesting as it was my first step into coding in java script. This led to my having to figure out a lot of syntax issues and how java script deals with things different to python. This was also my first time have to make sure something is able to run 24/7 through a server so I'm quite interested in getting to understand how servers work.
How to test my bot: head to the Hackclub slack and try out any of the commands.
- 2 devlogs
- 1h
- Make a Slack Bot