DevLog #8
I decided to continue developing the bot, so here’s what I’ve done since the last update:
1. Code organization
I improved the project’s organization by separating command groups into different files.
Now, each file has a specific responsibility:
-
animals → animal-related commands, such as
/koi-duck,/koi-cat,/koi-dog, and others. -
space → space-related commands, such as
/koi-apod. I plan to add more commands in this category later. -
utility → general commands, such as
/koi-sayand/koi-tts.
This has made the code much easier to maintain and allows for easier addition of new features.
2. Loading system for responses
One thing that really bothered me was when a command took a while to respond.
On Discord, when a bot is processing something, a “Bot is thinking…” message appears while it works. I couldn’t find an exact equivalent on Slack, so I decided to create my own system.
Now, some commands send a loading message first—for example:
🦆 Looking for a duck…
Once the command finishes, that message is updated with the final response.
This makes for a much better experience; before, it used to look like the bot had stopped working lol.
3. Direct messages with the bot
I finally managed to enable DMs for the bot!
Now you can chat directly with Koizinho in private. It can already respond to simple messages, for example:
User: Hi!
Koizinho: Hello!
I still want to improve this part. Maybe I’ll add some form of AI or a smarter conversation system in the future.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.