Zum Inhalt

Sub/Follow/Bits-Notifications in Discord

Twitch-Events parallel zu Chat auch in Discord-Channel posten. Community sieht's auch wenn nicht live im Stream zugeguckt wurde.

Voraussetzung: Discord-Webhook (siehe webhook-setup.md) Patterns: Twitch-Event-Trigger + Discord Basic Webhook Sub-Actions: +1 in jeder Event-Action

Strategie

Bei den existierenden Event-Actions (siehe events/) hängst du eine zusätzliche Discord Basic Webhook Sub-Action an.

Empfehlung: für Discord eine eigene Webhook-URL für jeden Event-Typ (Sub-Feed, Follow-Feed, Cheer-Feed) oder ein zentraler "Twitch-Events" Channel.

Sub-Notification

In der [Event] Sub Hype Action (Doku) nach der Tier-Cascade:

[Event] Sub Hype
├── 1-5. (existing tier cascade)
└── 6. Discord Basic Webhook:
       Webhook URL: <sub-feed-url>
       Username: AzaCraft Sub-Feed
       Content: 💎 **@%user%** ist jetzt Subscriber (%tier%). Danke fürs Support!

Bei Multi-Month-Sub Extra-Info:

6. If/Else: %isMultiMonth% Equals true
   ├── Discord Basic Webhook:
   │     Content: 💎💎 **@%user%** hat %multiMonthDuration% Monate Sub gekauft (%tier%)
   └── Break
7. Discord Basic Webhook:
     Content: 💎 **@%user%** ist jetzt Subscriber (%tier%)

Follow-Notification

In [Event] Follow Welcome (Doku) anhängen:

[Event] Follow Welcome
├── 1. Send Message: "💜 Willkommen @%user%..."
└── 2. Discord Basic Webhook:
       Content: 💜 **@%user%** folgt jetzt AzaCraft

Vorsicht: Bei aktivem Stream mit vielen Follows pro Stunde wird Discord-Channel zugespammt. Optional Filter:

2. If/Else: %userType% Equals broadcaster
   └── Break   (ignoriere Self-Follow Test-Events)
3. Discord Basic Webhook: "💜 **@%user%** folgt jetzt..."

Bits-Notification

In [Event] Bits Cheer (Doku) am Ende:

[Event] Bits Cheer
├── 1-7. (existing cascade)
└── 8. Discord Basic Webhook:
       Content: 💎 **%displayName%** hat **%bits% Bits** gecheert!

Optional: nur bei großen Cheers in Discord:

8. If/Else: %bits% Greater Than 99
   └── Discord Basic Webhook: "💎 **%displayName%** mit %bits% Bits!"

Gift-Sub-Notification

In [Event] Gift Sub Thanks (Doku):

[Event] Gift Sub Thanks
├── 1-5. (existing cascade)
└── 6. Discord Basic Webhook:
       Content: 🎁 **@%user%** hat **@%recipientUser%** einen %tier%-Sub geschenkt

Bei Gift-Bomb (separat):

[Event] Gift Bomb  (Trigger: Twitch → Subscriptions → Gift Bomb)
└── Discord Basic Webhook:
     Content: 🎁🎁 **@%user%** droppt %gifts% **%tier%-Subs** in die Community!

Raid-Notification

In [Event] Raid Welcome (Doku):

[Event] Raid Welcome
├── 1-6. (existing welcome + shoutout)
└── 7. Discord Basic Webhook:
       Content: 🌊 Raid von **@%user%** mit **%viewers% Viewern**! Check https://twitch.tv/%userName%

Variante: Alle Events in einen "Stream-Activity-Channel"

Wenn du nur EINEN Discord-Channel "stream-events" hast statt mehrere:

  • Gleiche Webhook-URL überall
  • Username pro Event-Typ ändern damit es übersichtlich bleibt:
Event Username
Sub Twitch Subs
Follow Twitch Follows
Bits Twitch Cheers
Raid Twitch Raids

Discord rendert die mit Custom-Username, was die Feed-Übersicht aufräumt.

Erweiterung: Sammelnachricht pro Stream

Statt jeder Sub einzeln zu posten — am Stream-Ende eine Zusammenfassung mit Stats:

Action: [Sys] Stream Offline Discord Summary

Trigger: Twitch → Channel → Stream Offline

1. Global (Get): subsCount → totalSubs
2. Global (Get): followsCount → totalFollows
3. Global (Get): bitsCount → totalBits
4. Discord Basic Webhook:
   Content: |
     **Stream-Ende** 📊
     • %totalSubs% neue Subs
     • %totalFollows% Follows
     • %totalBits% Bits
     Bis zum nächsten Stream!

Counter werden in den einzelnen Event-Actions hochgezählt (siehe Globals Pattern) und bei Stream-Start zurückgesetzt.

Variante: Sub-Hype-Train Notification

Wenn die Hype-Train-Trigger feuern:

[Event] Hype Train Start  (Trigger: Twitch → Hype Train → Start)
└── Discord Basic Webhook:
     Content: 🚂 **HYPE TRAIN STARTED** im AzaCraft-Stream! Jetzt joinen!

[Event] Hype Train Level Up  (Trigger: Twitch → Hype Train → Level Up)
└── Discord Basic Webhook:
     Content: 🚂 Hype Train auf **Level %level%** ⬆️

Häufige Fallen

  • Discord rate-limit — bei sehr vielen Subs/Cheers in kurzer Zeit kann Discord blocken (429er). Bei Mass-Events nur die wichtigsten posten
  • Webhook-URL public — wer die URL hat, kann posten. NICHT in Streamer.bot Backups öffentlich teilen
  • @everyone Spam — bei Sub-Notification mit @everyone wird's nervig. Lieber Role-Ping für interessierte User
  • Discord-Message-Length-Limit — 2000 Zeichen. Bei riesigen Custom-Messages aufpassen
  • Custom-Emojis funktionieren nur wenn Webhook im richtigen Server postet wo das Emoji existiert

Quellen