Zum Inhalt springen

!followage

Set Argument — Target-Login säubern

Core Arguments Set Argument

Strippt das @ aus %input0%. Wenn leer war, ist targetLogin auch leer.

Variable Name targetLogin
Value $replace(%input0%, @, )$

If/Else — Fallback auf Sender

Core Logic If/Else
Input %targetLogin%
Operation Is Null or Empty
Then

Set Argument — Sender als Target

Core Arguments Set Argument
Variable Name targetLogin
Value %userName%

Get Follow Age Info for Target

Twitch Followers Get Follow Age Info for Target

Setzt %followUser%, %followUserName%, %isFollowing%, %followAgeShort%, %followAgeLong%, %followDate%.

Source Type Variable
Variable Name targetLogin

If/Else — Folgt nicht

Core Logic If/Else
Input %isFollowing%
Operation Equals
Value false
Then

Send Message + Break — Folgt nicht

Twitch Chat Send Message to Channel
Message @%user% — @%followUser% folgt dem Kanal nicht.

Break — folgende Steps werden übersprungen

Send Message — Erfolg

Twitch Chat Send Message to Channel
Message 💜 @%followUser% folgt seit %followAgeShort%.
Send using bot account aktiv
AzaBot: 💜 @%followUser% folgt seit %followAgeShort%.
So sieht's im Chat aus
  1. 1 Set Argument: targetLogin = $replace(%input0%, @, )$
  2. 2 If/Else: %targetLogin% Is Null or Empty
    1. Then 3 Set Argument: targetLogin = %userName%
  3. 4 Get Follow Age Info for Target (Variable = targetLogin)
  4. 5 If/Else: %isFollowing% Equals false
    1. Then 6a Send Message: "@%user% — @%followUser% folgt dem Kanal nicht."
    2. Then 6b Break
  5. 7 Send Message: "💜 @%followUser% folgt seit %followAgeShort%."
FeldWert
Name!followage
GroupAzaCraft Standard
Commands!followage
!fa
SourcesTwitch Message
Global Cooldown0
User Cooldown30
ChatResultat
!followage”💜 @MeinName folgt seit 2y, 4m, 10d.”
!followage @bob”💜 @Bob folgt seit 5d, 3h.”
!followage @nichtfolger”@%user% — @Nichtfolger folgt dem Kanal nicht.”

Wenn du längere Schreibweise willst:

FeldWert
Message💜 @%followUser% folgt seit %followAgeLong%.

Output: „💜 @Bob folgt seit 5 days, 3 hours.”