Formats the code blocks of a message using Discord context menus.
- C
- C++
- C#
- Java
- Rust
- TypeScript
- JavaScript
- Python
- JSON
- YAML
- HTML
- CSS
If you wish to invite the bot to your server, you can do it using this invite
- Read Messages
- Send Messages
- application.commands scope
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Docker
- Docker Compose (compatible with docker-compose version 3.8)
- Yarn
- Node.js >= 16.6.0
Get the Docker version you need here!
Since this bot has a docker-compose.yml file and is hosted on DockerHub, all you need to start your own version of Formatbot locally is to clone
this repository and set up the .env file.
The .env file is used to configure the bot token and owner id, in the following format:
DISCORD_TOKEN=<insert token>
OWNER=<insert owner id>
$ cp .env.example .env
> Copy-Item .env.example .env
Edit the .env file with your favourite editor, filling out the following properties:
- DISCORD_TOKEN (you can find the bot token under
https://discord.com/developers/applications/bot-id/bot
for an overview of all your bots visit https://discord.com/developers/applications) - OWNER (Where can I find my User/Server/Message ID?)
Run the bot via docker-compose
$ docker-compose up --build --detach
Create the .env
file like before.
Then run yarn && yarn dev
to start a development environment.
- Tatu Pesonen - Original Author - @tatupesonen
- Donny Roufs - Motivational speaker / setting up testing architecture - @donnyroufs
- Ben Jamming - Improve code blocks parsing a lot - @BenJammingKirby
- Dajeki - Improving the bot's logo - @Dajeki See also the list of contributors who participated in this project.
Give a ⭐️ if this project helped you!
This project is [GPLv3](LICENSE) licensed.