2023–2024
Discord-bot
A TypeScript Discord bot with self-assigned roles, a database and commands that change its behaviour without a restart.
- Role
- Personal project
- Status
- Open source
- Links
- Source on GitHub
- TypeScript
- discord.js
- Sequelize
- MariaDB
- i18next
01Why I built it
An easy way for members of a Discord server to pick their own roles, without an admin doing it by hand. It became my first bigger TypeScript project.
02What it does
- Interactive messages where users add and remove roles themselves.
- Roles are stored in a database and can be changed with commands while the bot is running.
- Automatic role on join, a welcome message and a simple word filter.
03Lessons learned
Types make changes safer
Moving from JavaScript to TypeScript with typed database models (sequelize-typescript) meant I dared to refactor without being afraid of breaking things.