Command: !addquote¶
Fügt eine neue Quote in die Streamer.bot Quote-DB hinzu. Standard: Mod-Only (sonst kann jeder Müll reinwerfen).
Voraussetzung: Mod-Permissions Patterns: Set Argument + If/Else (Empty-Check) + Add Quote + Send Message Sub-Actions: 4-5
Action: [Cmd] !addquote¶
Sub-Action 1: If/Else — Empty-Check¶
| Feld | Wert |
|---|---|
| Input | %rawInput% |
| Operation | Is Null or Empty |
Then-Branch:
Sub-Action 2 (im Then von 1): Hilfe + Break¶
Sub-Action 3: Add Quote¶
Pfad: Core → Quotes → Add Quote
| Feld | Wert |
|---|---|
| Text | %rawInput% |
Setzt:
| Variable | Inhalt |
|---|---|
%quote% |
Quote-Text (= rawInput) |
%quoteId% |
Vergebene ID |
%quoteUser% |
Display Name des Auslösers |
%quoteGame% |
Aktuelles Game |
%success% |
bool |
Sub-Action 4: If/Else — Add fehlgeschlagen¶
4. If/Else: %success% Equals false
├── Send Message: "@%user% Quote konnte nicht hinzugefügt werden."
└── Break
Sub-Action 5: Send Message — Erfolg¶
| Feld | Wert |
|---|---|
| Message | 📝 Quote #%quoteId% hinzugefügt: "%quote%" |
| Send using bot account | aktiv |
Action-Tree¶
[Cmd] !addquote
├── 1. If/Else: %rawInput% Is Null or Empty
│ ├── Send Message: "@%user% nutze !addquote <Text>"
│ └── Break
├── 2. Add Quote (Text = %rawInput%)
├── 3. If/Else: %success% Equals false
│ ├── Send Message: "Quote konnte nicht hinzugefügt werden."
│ └── Break
└── 4. Send Message: "📝 Quote #%quoteId% hinzugefügt: \"%quote%\""
Command-Einstellungen¶
| Feld | Wert |
|---|---|
| Name | !addquote |
| Group | AzaCraft Quotes |
| Commands | !addquote!aq |
| Sources | Twitch Message |
| Global Cooldown | 0 |
| User Cooldown | 30 |
| Grant Type | Allow |
| Groups | Moderators, VIPs |
VIPs dürfen Quotes hinzufügen weil sie typischerweise vertrauenswürdig sind. Auf Allow nur Moderators wenn du strikt sein willst.
Verwendungsbeispiele¶
| Chat | Wer | Resultat |
|---|---|---|
!addquote "Das wird funktionieren." — letzte Worte |
Mod | "📝 Quote #43 hinzugefügt..." |
!aq @bob hat gestern gemeint sowas geht nicht |
Mod | "📝 Quote #44 hinzugefügt..." |
!addquote |
Mod | Hilfe-Message |
!addquote irgendwas |
Normaler User | Permission blockt |
Anmerkung zur User-Attribution¶
Add Quote weist die Quote dem %user% zu (= dem Auslöser des Commands, NICHT dem zitierten User). Wenn du den zitierten User mit Quote verknüpfen willst:
Option A: Quote-Text im Format "<zitat>" — @<usern> schreiben:
Option B: Quote-Game-Field für den User missbrauchen. Add Quote setzt Game aus dem aktuellen Twitch-Game-Status — nicht direkt änderbar via Sub-Action ohne C#.
Pragmatisch: Option A. Im Text-Format mitgeben.
Erweiterung: Auto-Format mit Game-Info¶
[Cmd] !addquote
├── 1. (existing empty-check)
├── 2. Get User Info for Target (User Login = %broadcastUserName%)
│ → setzt %game%
├── 3. Add Quote (Text = "%rawInput% — %broadcastUser% beim Spielen von %game%")
├── 4. Send Message: "📝 Quote #%quoteId% hinzugefügt"
So enthält jede Quote automatisch Game-Kontext.
Erweiterung: Quote-Notification an Mod-Channel¶
Damit Mods updates bekommen wann neue Quotes hinzukommen.
Häufige Fallen¶
- Quote-Text mit Quotes drin (
"Hallo "Welt"") — kann Streamer.bot's String-Handling verwirren. Pragmatisch: User schreibt einfache Strings ohne nested Quotes - Zu viele Quotes — bei >10.000 wird das UI im Services-Pane langsam. Re-index oder Quote-Cleanup-Routine
- Quote ohne Text — wenn
%rawInput%leer ist, würde Add Quote eine leere Quote anlegen. Empty-Check fängt das ab