mimitang

2024-07-02
#Rust#HTML#CSS

A fun and simple bot for sharing little secrets amongst friends

In freshman year of college, I built two bots alongside friends: confessions bot and candy-grams. These two bots ended up being the source of a lot of fun (and also not so fun) stories and I wanted to remake both of them into something nicer. As a result, mimitang was born. The name, 秘密糖, means "secret candy" and is a bit of a nod to how this was originally a candy-gram bot.

I ended up re-building mimitang in a one-day sprint. It was a fun experiment to see how quickly I could make a very (very very very) simple bot in a foreign language and I'm relatively happy with the result (although not so much with the actual code). It was definitely a learning experience, but it ended up being much faster and simpler than I expected.

Tech Stack

ArtScuffle is written in Rust using serenity-rs. The website is written in plain HTML and CSS (mostly because I didn't need anything fancy). This marks the first ever Rust project I have ever done!

Migrating from Python to Rust was a bit of a challenge as Rust's syntax was very different from all the other languages I'm familiar with. I don't think I've been completely convinced yet... but I do think I'm more willing to write future bots in Rust.

Commands and Features

mimitang is an extremely simple bot. There are only two commands: /whisper and /confess, used to send anonymous PMs and anonymous server messages respectively. More options may be added in the future, but for now, I wanted to keep the bot simple and easy to use.