Summary
Utilize a service like Piston to provide the capabilities of running/formatting/evaluating arbitrary code snippets via slash commands or app commands.
Basic Example
Drawbacks and Impact
On the topic of "Why Piston?":
The only other viable option I have found is https://github.com/python-discord/snekbox but it is limited to Python code.
Piston allows for all desired languages (Rust, Swift, Python, etc.) and a lot more
Unresolved questions
No response
Summary
Utilize a service like Piston to provide the capabilities of running/formatting/evaluating arbitrary code snippets via slash commands or app commands.
Basic Example
Drawbacks and Impact
On the topic of "Why Piston?":
The only other viable option I have found is https://github.com/python-discord/snekbox but it is limited to Python code.
Piston allows for all desired languages (Rust, Swift, Python, etc.) and a lot more
Unresolved questions
No response