DiscordSaaSBot / SaaSBot

🤖 Discord bot for the builders and entrepreneurs community.
Apache License 2.0
11 stars 3 forks source link

Code interpreter #31

Closed stifskere closed 7 months ago

stifskere commented 7 months ago

Description

This PR comes with a code interpreter that runs a lot of common languages, even Brainfuck, it's contained in a module called code-interpreter inside the commands folder.

Features

image image

The command comes with the ability to run commands from a file you may upload or directly write with command parameters.

About vulnerabilities

This command uses the Paiza API, so all the code is run by them, as this PR can't in any way run that many languages being this small...

Supported languages

Other fixes

This PR also fixes a problem with the handlers, where you couldn't add sub commands or options while building a command.

alexcraviotto commented 7 months ago

I wouldn't allow running code from the bot, I haven't done a lot of digging but it may not be safe.

It uses an external API, code run outside.