Side note: I also changed the Drone CI runner to be a x64 Azure VM instead of the RPi w/ arm64. Should result in better performance as it's no longer running on a RPi :dogehehe:.
So sth like an enum of types and constraints as objects? Yeah, something like that!
I could read a bit more about different options. I can even make a graph database if that makes it any…
Database-wise, I'd say one row per rule. Perhaps something like this
CREATE TABLE ConditionalRoles (
id INTEGER PRIMARY KEY AUTOINCREMENT,
guild_id INTEGER NOT NULL,
…
Nope! It's just a matter of storing the setting for a guild in the database, and when the bot gets an even of someone joining the server, or a user/nick change event, we can check the DB and use…
Python's standard library has a unicode module that lets us do this pretty easily.
The bot would listen for events, then check against the database if it matches any criteria to assign or unassign a role.
On the admin side we would need commands for adding and removing…
Likely to be limited to text keywords only, and not regular expressions. Due to how Python works, with the Global Interpreter Lock, allowing a user-defined regular expression could cause the…