!followage
Fortgeschritten !fa
Sagt wie lange ein User dem Kanal folgt. Mit oder ohne Target.
1 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%, @, )$ |
2 If/Else — Fallback auf Sender
| Input | %targetLogin% |
| Operation | Is Null or Empty |
3 Then Set Argument — Sender als Target
Core ›Arguments ›Set Argument | Variable Name | targetLogin |
| Value | %userName% |
4 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 |
| Input | %isFollowing% |
| Operation | Equals |
| Value | false |
6 Then Send Message + Break — Folgt nicht
Twitch ›Chat ›Send Message to Channel | Message | @%user% — @%followUser% folgt dem Kanal nicht. |
Break — folgende Steps werden übersprungen
7 Send Message — Erfolg
Twitch ›Chat ›Send Message to Channel | Message | 💜 @%followUser% folgt seit %followAgeShort%. |
| Send using bot account | aktiv |
A AzaBot: 💜 @%followUser% folgt seit %followAgeShort%.
↑ So sieht's im Chat aus
-
1 Set Argument: targetLogin = $replace(%input0%, @, )$ -
2 If/Else: %targetLogin% Is Null or Empty
-
Then 3 Set Argument: targetLogin = %userName%
-
4 Get Follow Age Info for Target (Variable = targetLogin) -
5 If/Else: %isFollowing% Equals false
-
Then 6a Send Message: "@%user% — @%followUser% folgt dem Kanal nicht." -
-
7 Send Message: "💜 @%followUser% folgt seit %followAgeShort%."
| Feld | Wert |
|---|
| Name | !followage |
| Group | AzaCraft Standard |
| Commands | !followage
!fa |
| Sources | Twitch Message |
| Global Cooldown | 0 |
| User Cooldown | 30 |
| Chat | Resultat |
|---|
!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:
| Feld | Wert |
|---|
| Message | 💜 @%followUser% folgt seit %followAgeLong%. |
Output: „💜 @Bob folgt seit 5 days, 3 hours.”