Announcing Campmaster Constantine


I’ve been on Discord for five years now, and I’ve been developing bots for it since at least 2016. In that time I’ve really had two major bot projects, namely the OtmasBot and Kronos. Both of those were implemented in Node.JS, and they both had their respective problems. The OtmasBot was a mess, and sometimes the token even got leaked into git as well. Kronos was different. Kronos had a decent command framework (run through discord.js-commando) and commands that (sometimes) worked. The major difficulty I ran into with Kronos was getting the databases to play nicely with my code. There were multiple issues with SQLite and Docker, spread across many different repositories as I tried GitHub, GitLab, and different frameworks like Klasa. None of them worked, and the project lost my interest for a while.

Camp Quarantine

Enter Camp Quarantine, a new Discord server focused around inclusive international Scouting. As one of the founding staff members, I wanted to provide something to help the server out, and I immediately thought of a bot. At first, I was going to implement it in Node.JS again. Then, I remembered all the difficulties I had last time I tried that, and I remembered that I’ve been meaning to learn Rust for a while. I know that making a Discord bot is not exactly the preferred way to learn a new language, but it worked for Node.JS, why couldn’t it work with Rust? I decided on using the serenity library, which included a “Standard Framework” to make commands easier.


Around this time, I discovered Sourcehut. Sourcehut is a simple, JavaScript-free project site that’s split up into several different services, like Git, CI, and Todo lists. I decided I’d give Sourcehut a go along with Rust.

The Outcome

Somehow, this combination of new services, languages, and libraries worked. I’ve been more productive in the last few weeks than I ever have been before. Campmaster Constantine has grown in functionality faster than either Kronos or the OtmasBot, and the code is cleaner and faster. My databases “just work”. I’ve finally figured out how to make Continuous Deployment work properly, and I’ve learned so much about Rust and Git.

For all software developers, I’d highly recommened both Rust and Sourcehut. They’re both incredibly powerful and useful tools. As for the Campmaster, he’s available to join your Discord servers and start working today! You can read more about him here.

Have a comment or question on one of my posts? Start a discussion in my public inbox by sending an email to ~muirrum/ If you are unfamiliar with mailing lists, start with mailing list etiquette. Otherwise just shoot me an email to my address which is linked in the sidebar.

Articles from blogs I follow is more concerned with Google's interests than good engineering sucks. It’s certainly prettier than, but under the covers, it’s a failure of engineering characteristic of the Google approach. Go is a pretty good programming language. I have long held that this is not attributable to Google’s stewards…

via Drew DeVault's Blog August 1, 2020
Announcing Rust 1.45.1

The Rust team is happy to announce a new version of Rust, 1.45.1. Rust is a programming language that is empowering everyone to build reliable and efficient software. If you have a previous version of Rust installed via rustup, getting Rust 1.45.1 is as easy …

via Rust Blog July 30, 2020
Status update, July 2020

Hi all! It’s time for another monthly status update. Yesterday I’ve released wlroots 0.11.0 and Sway 1.5! This is a pretty big release, with lots of new features and bug fixes. New features include headless outputs that can be created on-the-fly (one use-cas…

via emersion July 21, 2020

Generated by openring