1
0
Fork 0
WIP rewrite of n/quotes-bot in Python with https://codeberg.org/imbev/simplematrixbotlib.
Find a file
2025-01-31 18:47:36 -06:00
.gitignore ok 2025-01-31 18:30:02 -06:00
bot.py rename matrix so it makes more sense 2025-01-31 18:38:04 -06:00
config.sample.json docs, sample config 2025-01-31 18:47:36 -06:00
fetch.py start work on quotes fetching 2025-01-31 18:39:10 -06:00
README.md docs, sample config 2025-01-31 18:47:36 -06:00

quotes-bot-python

WIP rewrite of n/quotes-bot in Python with https://codeberg.org/imbev/simplematrixbotlib.

Setup

First, make and activate a venv. There are plenty of guides online, however it usually goes like this:

python3 -m virtualenv venv && source venv/bin/activate.fish

If you use bash, you can replace source venv/bin/activate.fish with just source venv/bin/activate.

Dependencies

This bot depends on simplematrixbotlib, which can be installed in your venv like this:

pip install simplematrixbotlib

Configuring

TODO: write docs about the config file

First, copy the sample config:

cp config.sample.json config.json

Then edit it:

$EDITOR config.json

You should be good to go! To run it, run this in the venv:

python bot.py