-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmaubot.yaml
More file actions
63 lines (54 loc) · 2.12 KB
/
maubot.yaml
File metadata and controls
63 lines (54 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# =============================================================================
# maubot.yaml — Plugin Manifest
# =============================================================================
#
# PAKETIEREN:
# zip -r url_filter.mbp \
# maubot.yaml base-config.yaml main.py \
# blacklists/custom.txt blacklists/ignore.txt whitelists/custom.txt
#
# INSTALLIEREN:
# 1. url_filter.mbp im Maubot-Dashboard hochladen
# (/_matrix/maubot/#/plugins)
# 2. Neue Instanz erstellen → Bot-Client zuweisen → speichern.
# 3. Instanzkonfiguration anhand der base-config.yaml befüllen.
# 4. Hostfile-formatierte .txt-Listen in das konfigurierte blacklist_dir legen.
#
# ANFORDERUNGEN:
# maubot >= 0.4.0
# mautrix >= 0.20.0
# Python >= 3.10
# =============================================================================
maubot: 0.4.0
# Eindeutige Plugin-ID — bei Fork oder Weitergabe anpassen
id: de.maubot.url_filter_bot
name: URL Filter Bot
version: 2.6.2
license: AGPL-3.0-or-later
description: >
Scannt Matrix-Raumnachrichten auf URLs und prueft diese gegen konfigurierbare
Blacklists im Hostfile-Format. Unbekannte Domains werden in einen
Moderationsraum weitergeleitet, wo per Emoji-Reaktion oder Befehl
entschieden werden kann. Unterstuetzt Wildcards (*.domain.com), Apex-Domain-
Matching, URL-Shortener-Aufloesung und nackte Domains ohne http://-Praefix.
Alle Moderationsentscheidungen und Verstoesse werden datenbankgestuetzt und
DSGVO-konform (SHA-256-Nutzer-Hashing, 24h-Retention) persistiert.
author:
- Kori <korinator21@gmail.com>
# Python modules bundled in the .mbp archive (each maps to a .py file)
modules:
- main
# The Plugin subclass inside main.py
main_class: URLFilterBot
# Enables the per-instance config editor in the Maubot dashboard
config: true
# Enables the per-instance plugin database (mautrix async_db / aiosqlite / asyncpg)
database: true
database_type: asyncpg
# Seed files bundled in the archive.
# The bot appends to these at runtime when mods approve/block domains.
extra_files:
- blacklists/custom.txt
- blacklists/ignore.txt
- whitelists/custom.txt
- base-config.yaml