https://github.com/t2bot/trivia-bot
A simple trivia bot for Matrix
https://github.com/t2bot/trivia-bot
Last synced: 12 months ago
JSON representation
A simple trivia bot for Matrix
- Host: GitHub
- URL: https://github.com/t2bot/trivia-bot
- Owner: t2bot
- License: apache-2.0
- Created: 2022-01-08T04:49:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-09T02:23:26.000Z (over 4 years ago)
- Last Synced: 2025-02-05T06:33:56.603Z (over 1 year ago)
- Language: TypeScript
- Size: 79.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Matrix Trivia Bot
*Created with the [bot-sdk template](https://github.com/turt2live/matrix-bot-sdk-bot-template).*
A trivia bot for Matrix, using questions from [Open Trivia Database](https://opentdb.com/).
## Using the bot
The bot is hosted at [@trivia:t2bot.io](https://matrix.to/#/@trivia:t2bot.io) with more information
on the [t2bot.io website](https://t2bot.io/triviabot).
## Running / Building
You will need at least **NodeJS 14 or higher**.
To install dependencies: `yarn install`.
To build it: `yarn build`.
To run it: `yarn start:dev`
To check the lint: `yarn lint`
To build the Docker image: `docker build -t matrix-trivia-bot:latest .`
To run the Docker image (after building): `docker run --rm -it -v $(pwd)/config:/bot/config matrix-trivia-bot:latest`
*Note that this will require a `config/production.yaml` file to exist as the Docker container runs in production mode.*
### Configuration
The default configuration is offered as `config/default.yaml`. Copy/paste this to `config/development.yaml`
and `config/production.yaml` and edit them accordingly for your environment.