Advertisement
Guest User

Sub Script

a guest
Jan 7th, 2017
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. on *:connect:{
  2. if ($server = tmi.twitch.tv) {
  3. ; Requesting capabilities is necessary to recive the info
  4. raw CAP REQ :twitch.tv/membership
  5. raw CAP REQ :twitch.tv/tags
  6. raw CAP REQ :twitch.tv/commands
  7. }
  8. }
  9.  
  10. on *:TEXT:*subscibed*:#amazhs: {
  11. if $nick = twitchnotify {
  12. if $4 = to { }
  13. else { msg $chan WELCOME $1 omgHello omgParty }
  14. }
  15. }
  16.  
  17. raw USERNOTICE:*:{
  18. if ($msgtags(msg-id .key == resub) {
  19. if ($target == #amazhs) {
  20. %months = $msgtags(msg-param-months) .key
  21.  
  22. %hello = %months % 12
  23. %kirby = %months - %hello
  24. %kirby = %kirby / 12
  25.  
  26. if (%hello == 0) {
  27. msg $target WELCOME BACK $1 omgParty $str( omgKirby $+ $chr(32) , %kirby ) omgParty
  28. }
  29. else {
  30. msg $target WELCOME BACK $1 $str( omgKirby $+ $chr(32) , %kirby ) $str( omgHello $+ $chr(32), %hello )
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement