Skip to content

gaato/coderunbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

236 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeRunBot (gaato bot)

What is this

CodeRunBot

It can run codes and render LaTeX.

gaato bot

This is a bot for internal use that adds other functions to CodeRunBot. Also, this is for Japanese speakers.

Links

Requirements

How to run (CodeRunBot)

Set CODERUNBOT_TOKEN in the environment file.

with uv (recommended)

$ cd discord
$ uv sync --locked
$ uv run python -m bots

without uv

$ python -m venv .venv
$ . .venv/bin/activate
$ pip install aiohttp google-api-python-client google-auth-oauthlib iso639-lang openai "py-cord[voice]>=2.6" python-dotenv
$ python -m bots

How to run (gaato bot)

Basically the same as CodeRunBot, but set the environment file to include GAATO_BOT_TOKEN, GOOGLE_API_KEY and WOLFRAM_APPID and the execution command is as follows. You also need ffmpeg.

$ GAATO_BOT=1 uv run python -m bots

For developer

Pull requests are welcome. Please use uv to manage dependencies. Do not rewrite uv.lock by hand.

Environment

For containerized or service-manager based deployment, keep secrets outside the repo and point the process at an environment file.

  • Example file: coderunbot.env.example
  • TEX_BASE_URL defaults to http://127.0.0.1:8080
  • The TeX renderer can be started with HOST and PORT overrides

About

The Discord bot that can run codes and render LaTeX.

Topics

Resources

License

Stars

Watchers

Forks

Contributors