Tobis is a Discord music bot implementation, written in TypeScript.
It uses Docker, Bun, discord.js, Lavalink, and Sentry.
The bot currently does not support sharding.
Important
This project is still in its early stages.
Command | Description |
---|---|
/play |
Play a song |
/skip |
Skip the current song |
/stop |
Stop the music |
/ping |
Measure the latency |
/uptime |
Report the uptime |
/queue |
See queue |
/pause |
Pause track |
/resume |
Resume track |
/clear |
Clear queue |
/remove |
Remove track from queue |
cp .env.example .env
For easier management, the project comes with a Makefile
.
Command | Description |
---|---|
make dev |
Launches the bot in development mode. This will automatically restart the bot |
make prod |
Launches the bot in production mode |
make stop |
Stops the bot |
make logs |
Shows the logs |
make purge |
Stops the bot and removes all containers / images |
make clear-cache |
Clears the file-system cache |
All commands get automatically registered upon startup.
This happens only when there is no cache, or when the cache is outdated. This makes it easy to update the commands and not worry about spamming the Discord API.
To clear the file-system cache, run make clear-cache
.