Announcing Campmaster Constantine

Published 2020-04-29 on Cara's Blog - Permalink

Overview

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.

Sourcehut

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.


Articles from my webring

crates.io: development update

Since crates.io does not have releases in the classical sense, there are no release notes either. However, the crates.io team still wants to keep you all updated about the ongoing development of crates.io. This blog post is a summary of the most significa…

via Rust Blog July 29, 2024

So you want to compete with or replace open source

We are living through an interesting moment in source-available software.1 The open source movement has always had, and continues to have, a solid grounding in grassroots programmers building tools for themselves and forming communities around them. Some loo…

via Drew DeVault's blog July 16, 2024

Status update, July 2024

Hi! This month wlroots 0.18.0 has been released! This new version includes a fair share of niceties: ICC profiles, GPU reset recovery, less black screens when plugging in a monitor on Intel, a whole bunch of new protocol implementations, and much more. Thanks…

via emersion July 16, 2024

Generated by openring