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

My first slack bot!

  • 7 Devlogs
  • 6 Total hours

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

Ship #1

I created a Slack bot using JavaScript. My bot features nine commands, including /koi-ping, which replies with "Pong!" to check if the bot is online; /koi-apod, which uses the NASA API to send the Astronomy Picture of the Day; commands like /koi-cat, /koi-dog, /koi-fox, and /koi-duck, which use APIs to send random animal images; /koi-sound, which sends MP3 animal sounds; /koi-say, which repeats the user's message; and /koi-tts, which converts text to speech using Microsoft Edge TTS.

To develop the project, I used various APIs, primarily to fetch images from NASA and of animals. I also worked with audio files to implement the commands related to sounds and text-to-speech conversion.

The biggest challenge during development was dealing with file paths. Honestly... who decided it had to work that way? 😭 I spent a long time trying to figure out why the files weren't being found before I managed to organize everything correctly.

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

40m 28s logged

DevLog #6

Okay… I finally finished the project’s README! 🎉

I think it turned out pretty cool; it’s not super professional yet, but I think it does a good job of showing what the bot can do. I might improve it in the future whenever I can shake off the laziness, haha.

I also realized I used Axios quite a bit in this project. Most of the new commands rely on external APIs.

There isn’t much else to add to this devlog; at least I’m happy it’s not just a bot that replies “pong” 😆

0
0
3
Open comments for this post

36m 3s logged

DevLog #5

New command, wow!! 🎉🎉🎉🎉

Person: “Wait… isn’t that just /koi-say?”

Well… sort of. It’s basically an improved /koi-say.

Meet the new command: /koi-tts.

As the name suggests, TTS stands for Text to Speech. The bot takes the text you send, uses Microsoft Edge’s TTS voices to turn it into an MP3, and then sends the audio back to you. Pretty cool. =)

(I hate path😭)

0
0
7
Open comments for this post

15m 44s logged

DevLog #4

Today I added a very simple command: /koi-say.

It does exactly what the name suggests: the bot repeats the message you type. Nothing spectacular, but it’s a classic, useful command for testing interactions.

If you don’t type anything, the bot replies by letting you know that text is required. The message might seem a bit blunt… but remember: it’s just a koizinho. 😭

By the way, I was thinking about how to explain the bot’s name in English. I think the closest equivalent would be something like “little koi”. In Portuguese, we use the suffix -zinho to form a diminutive that often conveys affection or cuteness. So, koizinho would be something like a “little koi” or an affectionate way to refer to the bot.

0
0
8
Open comments for this post

40m 24s logged

DevLog #3

So… continuing the animal saga, I present to you: /koi-sound. 🐾

This command makes the bot send a humble animal selection menu. Then, you just pick one (there are still only a few, hahaha), and the bot replies with an .mp3 file containing the chosen animal’s sound.

The list of animals is still small, but I plan to add many more in future devlogs.

And a quick rant: I hate path. 😭 Who decided that handling file paths had to be done this way?

0
0
14
Open comments for this post

41m 59s logged

DevLog #2

Today I added 4 new commands to the bot. To be honest, it wasn’t very difficult. It was basically copying the code from the first command, changing the API, and adapting it to the particularities of each one.

(Seriously… who decided that each API would return the data in a different way? 😭 I just wanted to grab a humble image.)

The new commands are:

  • 🦆 /koi-duck — shows a picture of a random duck.

  • 🐱 /koi-cat — shows a picture of a random cat.

  • 🐶 /koi-dog — shows a picture of a random dog.

  • 🦊 /koi-fox — shows a picture of a random fox.

It was a short devlog, but at least now the bot is becoming more fun.

0
0
9
Open comments for this post

2h 33m 2s logged

DevLog #1

For this fresh start, I’ve added two commands:

  • /koi-ping — a command that makes the bot reply with “🏓 Pong!”.
  • /koi-apod — fetches NASA’s Astronomy Picture of the Day (APOD) and sends the image along with its description.

Well… I think that’s it for this devlog.

0
0
7

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…