RustbotPython
RustbotPython copied to clipboard
A Discord bot for the Community Rust Language server, written in Python.
# Problem Currently, the code provided to the `?eval` command is wrapped like this: ```rust fn main() { println!("{:?}", { // CODE HERE }); } ``` This has a small...
Currently, if the error text produces by rustc is too large to be displayed in a Discord message (2000 characters), this bot prints a playground link instead that you have...
This command would work similarly to `?eval` (or maybe `?play`?), but it instructs the Rust Playground to run the code through Miri instead of compiling and executing normally. The idea...
This would be very convenient to quickly check what a piece of Rust code actually does, or if the Rust compiler generates code as intended. > ?godbolt > ```rust >...
If you `?eval` something but mess up the backticks, the bot will give you an error message, obviously. When you then edit the message and correct it, the bot _does...
# Bug description I thought this was a bug, but apparently it's a feature...? https://github.com/ivandardi/RustbotPython/blob/25ecd0eaf663afc51307288f0072d18ed1688841/bot/cogs/playground.py#L76-L83 It deliberately deletes everything after the occurence of `//`. I imagine this is a very...