View on GitHub

coderunbot

The Discord bot that can run codes and render LaTeX.

How to use CodeRunBot

Introduction

This bot is made by gaato (@gaato__).

Installation

There are two ways to use the bot.

Commands

/run

Pick a language (with autocomplete) and a form opens for your code and standard input. The code runs on Wandbox.

Supported languages are fetched dynamically from Wandbox — whatever appears in the autocomplete is what is available.

]run (server only)

]run language
code

Code fences (```) are ignored.

]run python
print('hello')

/tex

Opens a form for LaTeX input. The env option wraps your input in an align / gather environment, and spoiler posts the image as a spoiler.

]tex / ]stex (server only)

]tex x^2 + y^2 = r^2

Renders LaTeX (math mode) as an image. ]stex posts it as a spoiler.

Right-click a message → Apps → escape

Shows the message content with Markdown and mentions escaped (visible only to you).

/privacy-policy, /opt-out, /opt-in

Shows the privacy policy and lets you opt out of / back into message content processing. See the privacy policy for details.

Handy behaviors