No description
|
|
||
|---|---|---|
| .devcontainer | ||
| .github | ||
| .vscode | ||
| src | ||
| tests | ||
| .env.sample | ||
| .gitattributes | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| Dockerfile | ||
| pdm.lock | ||
| pyproject.toml | ||
| README.md | ||
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.