Slash Commands - Luau Runner
Skip to content

Slash Commands

Here are the valid slash commands that you can use with the bot:

  • /ping: Responds with "Pong!"
  • /compile: Executes the given Luau code in the Roblox environment.
  • /help: Brings them here
  • /input: sends inputs to io.read() when compiling code
  • /hiddeninput: sends inputs to io.read() without notifying the channel

Application Commands

Here are the valid application commands that you can use with the bot:

  • bytecode: Compiles the given Luau code into bytecode.
  • compile: Executes the given Luau code in the Roblox environment.
  • bytecodeWOption: Compiles the given Luau code into bytecode with additional options and in a form.
  • compileWOption: Executes the given Luau code in the Roblox environment with additional options and in a form.

Info

compileWOption's options will also not work if the globals for the options were already defined in the code.

Info

compileWOption's Additional Code Option by default will append the code to the end of the original code. Example: Original Code: print('hi') Additional Code: print('after') Result:

print('hi')
print('after')

You can also add a {CODE} placeholder in the additional code to specify where the original code should be placed. Example: Original Code: print('hi') Additional Code:

print('before')
{CODE}
print('after')

Result:

print('before')
print('hi')
print('after')

Info

compile will also truncate the output to reduce spam.

Flags

Commands executed using bytecode check for flags in the text that determine how the code is compiled. Here are the available flags: --!optimize <level 0-2> --!debug <level 0-2> --!remarks

Example:
```lua
--!optimize 2
print(1+1) -- would optimize to print(2)
```

Warning

You are allowed to use application command on files as well but there is a maximum file size limit of 30 kb. Exceeding this limit will fail to compile.

Warning

Native code generation is currently not supported.