Command: !quotecount¶
Postet wie viele Quotes in der DB sind.
Patterns: Get Quote Count + Send Message Sub-Actions: 2
Action: [Cmd] !quotecount¶
Sub-Action 1: Get Quote Count¶
Pfad: Core → Quotes → Get Quote Count
Setzt:
| Variable | Inhalt |
|---|---|
%quoteCount% |
Anzahl Quotes |
Sub-Action 2: Send Message¶
| Feld | Wert |
|---|---|
| Message | 📚 %quoteCount% Quotes gespeichert. !quote für eine zufällige. |
| Send using bot account | aktiv |
Action-Tree¶
[Cmd] !quotecount
├── 1. Get Quote Count
└── 2. Send Message: "📚 %quoteCount% Quotes gespeichert..."
Command-Einstellungen¶
| Feld | Wert |
|---|---|
| Name | !quotecount |
| Group | AzaCraft Quotes |
| Commands | !quotecount!quotes!qc |
| Sources | Twitch Message |
| Global Cooldown | 30 |
| User Cooldown | 60 |
Verwendungsbeispiele¶
| Chat | Resultat |
|---|---|
!quotecount |
"📚 42 Quotes gespeichert. !quote für eine zufällige." |
!quotes |
gleich |
Wichtig: Count ≠ Letzte ID¶
Wenn Quotes gelöscht wurden, ist %quoteCount% kleiner als die höchste vergebene ID. Bei 50 hinzugefügten und 3 gelöschten Quotes:
%quoteCount%= 47- Letzte ID = 50
Wer also nach "Quote 50" fragt, bekommt sie — auch wenn Count nur 47 ist. Das ist Standard-Verhalten.
Erweiterung: Quote-Count mit Stats¶
[Cmd] !quotecount
├── 1. Get Quote Count
├── 2. Get Quote (Random) ← für letzte-Quote-Info
└── 3. Send Message: "📚 %quoteCount% Quotes. Beispiel: \"%quote%\" (#%quoteId%)"
Postet auch eine zufällige zur Inspiration.