No description
Find a file
2026-05-19 14:47:04 -07:00
.devcontainer updates 2025-01-31 10:29:36 -08:00
.github Fix docker 2025-12-15 10:26:01 -08:00
.vscode updates 2025-01-31 10:29:36 -08:00
src switch to curl_cffi for cloudflare, fix date parsing, handle errors 2026-05-19 14:47:04 -07:00
tests Add sweep functionality 2025-12-16 11:10:48 -08:00
.env.sample updates 2025-01-31 10:29:36 -08:00
.gitattributes updates 2025-01-31 10:29:36 -08:00
.gitignore style update 2025-12-15 10:22:07 -08:00
.pre-commit-config.yaml updates 2025-01-31 10:29:36 -08:00
Dockerfile switch to curl_cffi for cloudflare, fix date parsing, handle errors 2026-05-19 14:47:04 -07:00
pdm.lock Add tests 2025-12-16 10:57:40 -08:00
pyproject.toml switch to curl_cffi for cloudflare, fix date parsing, handle errors 2026-05-19 14:47:04 -07:00
README.md updates 2025-01-31 10:29:36 -08:00

TRIVIABOT

This is a very janky discord bot that does a couple of things. It scrapes trivia from LearnedLeague and posts it to a channel when requested. It also rewrites twitter and tiktok links to embed properly.

Installation

Run the docker container with the env vars set or fill out the .env.sample file and pass that to the container:

export TOKEN=<DISCORD API TOKEN>
export GUILD_ID=<DISCORD GUILD ID>
export LL_USERNAME=<LEARNEDLEAGUE USERNAME>
export LL_PASSWORD=<LEARNEDLEAGUE PASSWORD>

For a persistent database, mount a sqlite database to /data/trivia.db when running the container.