MCPcopy Index your code
hub / github.com/Headline/discord-compiler-bot

github.com/Headline/discord-compiler-bot @v3.7.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.7.1 ↗ · + Follow
265 symbols 526 edges 57 files 50 documented · 19%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

👩‍💻 Discord Compiler

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!).

🔗 Links

👩‍🏫 Usage

For a tutorial about how to use this bot, feel free to view our wiki!

🔰 Hosting it yourself?

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. 1) Copy the repository's .env.example as a .env file & fill in required information 2) Download our latest release build & place it in the same directory as the .env file. For windows download discord-compiler-bot.exe & for linux download discord-compiler-bot. 3) Start the bot

⚖️ License

This project's license is the GNU AGPLv3 general purpose license. Review it here.

🖼️ Icons

Icons made by Freepik and pixelmeetup from www.flaticon.com

Extension points exported contracts — how you extend this code

BoilerPlateGenerator (Interface)
(no doc) [7 implementers]
src/boilerplate/generator.rs
ToEmbed (Interface)
(no doc) [2 implementers]
src/utls/discordhelpers/embeds.rs
ShardsReadyHandler (Interface)
(no doc) [1 implementers]
src/events.rs

Core symbols most depended-on inside this repo

description
called by 25
src/cppeval/eval.rs
get_components
called by 16
src/utls/parser.rs
contains
called by 16
src/utls/blocklist.rs
edit_message_embed
called by 10
src/utls/discordhelpers/embeds.rs
build_fail_embed
called by 10
src/utls/discordhelpers/embeds.rs
write
called by 9
src/utls/blocklist.rs
dispatch_embed
called by 8
src/utls/discordhelpers/embeds.rs
find_code_block
called by 6
src/utls/parser.rs

Shape

Function 128
Method 90
Class 43
Interface 3
Enum 1

Languages

Rust100%

Modules by API surface

src/managers/compilation.rs25 symbols
src/utls/discordhelpers/embeds.rs16 symbols
src/cache.rs16 symbols
src/tests/parser.rs13 symbols
src/tests/boilerplate/java.rs13 symbols
src/cppeval/eval.rs13 symbols
src/utls/discordhelpers/mod.rs12 symbols
src/events.rs12 symbols
src/tests/cpp.rs11 symbols
src/managers/stats.rs9 symbols
src/apis/dbl.rs9 symbols
src/tests/boilerplate/cpp.rs8 symbols

For agents

$ claude mcp add discord-compiler-bot \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page