A Discord bot which can compile code, display the output of the compiler, and run the program. This bot is great for prototyping ideas, or testing concepts on-the-fly with very little effort. It supports almost every programing language you could name (c++, c, java, python, ruby, javascript, go, php, lua, & more!).
For a tutorial about how to use this bot, feel free to view our wiki!
services:
compiler-bot:
image: ghcr.io/headline/discord-compiler-bot:latest
restart: unless-stopped
environment:
# Required
- BOT_TOKEN=
- APPLICATION_ID=
# Also required, but modifiable if you want
- RUST_LOG=discord_compiler_bot
- BOT_PREFIX=;
- INVITE_LINK=https://discord.com/oauth2/authorize?client_id=504095380166803466&permissions=379968&scope=applications.commands%20bot
- DISCORDBOTS_LINK=https://discordbots.org/bot/504095380166803466
- GITHUB_LINK=https://github.com/Headline/discord-compiler
- STATS_LINK=http://headlinedev.xyz/discord-compiler
# Optional
# - BOT_ID=
# - SUCCESS_EMOJI_NAME=
# - SUCCESS_EMOJI_ID=
# - FAIL_EMOJI_NAME=
# - FAIL_EMOJI_ID=
# - LOADING_EMOJI_NAME=
# - LOADING_EMOJI_ID=
# - LOGO_EMOJI_NAME=
# - LOGO_EMOJI_ID=
# - COMPILE_LOG=
# - JOIN_LOG=
# - PANIC_LOG=
# - VOTE_CHANNEL=
# - DBL_TOKEN=
# - DBL_WEBHOOK_PORT=
# - DBL_WEBHOOK_PASSWORD=There's only two steps required to get this bot up-and-running. Our release builds only support 64-bit, if you'd like to run this on a different architecture you will have to compile the project yourself, this is also true if you wish to host this bot on MacOS.
- Copy the repository's .env.example as a
.envfile & fill in required information - Download our latest release build & place it in the same directory as the
.envfile. For windows downloaddiscord-compiler-bot.exe& for linux downloaddiscord-compiler-bot. - Start the bot
This project's license is the GNU AGPLv3 general purpose license. Review it here.
Icons made by Freepik and pixelmeetup from www.flaticon.com