diff options
| author | david <[email protected]> | 2026-10-14 20:45:52 -0300 |
|---|---|---|
| committer | david <[email protected]> | 2026-10-14 20:45:52 -0300 |
| commit | 9f82a0a2231ce732cb647ae67d3ac0cd6312c1a4 (patch) | |
| tree | f4fa7ba446205453c410519dcb76b01d419cd3e8 /README.md | |
| parent | b8baac169d3716fac55272b7127f00f9adb92ee6 (diff) | |
| download | faggot-chan-9f82a0a2231ce732cb647ae67d3ac0cd6312c1a4.tar.gz faggot-chan-9f82a0a2231ce732cb647ae67d3ac0cd6312c1a4.zip | |
hello
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -64,6 +64,23 @@ $ python3 bot.py ``` she only reads `general` and `announcements`, and every dm gets its own memory in `./files/log/dm/` so it never leaks into the server +# fallback +if you're using gemini you can have a local ollama `main.py` take over when gemini says you're out of quota. the wizard asks about it (it's the third line of `./files/config/connection.txt`), it needs to run on another port so run it as +```console +$ PORT=8766 python3 main.py +``` +the bot goes back to trying gemini after an hour. if there's no fallback (or it's down) she just says "usage limit reached, see you in a month" + +# admin +`admin.py` is the admin panel, it only edits files on the box so nobody on discord can touch it. the bot re-reads everything on every message, no restart needed +```console +$ python3 admin.py list +$ python3 admin.py edit <blocked|prompt|settings|reactions|params> #opens $EDITOR, vim if you don't have one +$ python3 admin.py block <user id> +$ python3 admin.py unblock <user id> +``` +`reactions.json` is where the stickers / emojis / media she can send live, the bot adds new ones with an empty description and you fill them in. media with no description never gets offered + # colab if your pc can't run the model you can host `main.py` on colab, run `setup_wizard.py` on both sides and say yes to the colab question ```console |
