Advertisement
westor

Twitch Adding Subscribers for VitruxPT v2.0

Feb 3rd, 2015
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.58 KB | None | 0 0
  1. alias subs_update { raw TWITCHCLIENT 2 }
  2.  
  3. ON *:TEXT:SPECIALUSER & subscriber:?: {
  4.   if ($nick !== JTV) { return }
  5.   var %f = subs.txt
  6.   if ($2) {
  7.     if ($read(%f,nw,$2)) { return }
  8.     write $qt(%f) $2
  9.     set %last_sub $2
  10.   }
  11. }
  12.  
  13. ON !*:TEXT:!*:#: {
  14.   tokenize 32 $strip($1-,burci)
  15.   var %f = subs.txt
  16.   if ($1 == !subupdate) { .msg $cha ( $+ $nick $+ ): Updating now the Subscriber database... | subs_update }
  17.   if ($1 == !subs) {
  18.     if (!$isfile(%f)) { .msg $chan ( $+ $nick $+ ): There is NOT any subscriber on my database yet! | return }
  19.     var %t = $lines(%f)
  20.     if (!%t) { .msg $chan ( $+ $nick $+ ): There is NOT any subscriber yet on my database! | return }
  21.     .msg $chan ( $+ $nick $+ ): There are  $+ %t $+  subscriber(s) on my database!
  22.   }
  23.   if ($1 == !checksub) {
  24.     if (!$2) { .msg $chan ( $+ $nick $+ ): Error, Please specify a nickkname! | return }
  25.     if (!$isfile(%f)) { .msg $chan ( $+ $nick $+ ): There is NOT any subscriber on my database yet! | return }
  26.     var %t = $lines(%f)
  27.     if (!%t) { .msg $chan ( $+ $nick $+ ): There is NOT any subscriber yet on my database! | return }
  28.     var %r = $read(%f,nw,$2)
  29.     if (%r) { .msg $chan ( $+ $nick $+ ): The $qt($2) is an twitch channel subscriber! }
  30.     elseif (!%r) { .msg $chan ( $+ $nick $+ ): The $qt($2) is NOT an twitch channel subscriber yet! }
  31.   }
  32.   if ($1 == !lastsub) {
  33.     if (!%last_sub) { .msg $chan ( $+ $nick $+ ): There is NOT any last subscriber on my database! }
  34.     elseif (%last_sub) { .msg $chan ( $+ $nick $+ ): The last subscriber is %last_sub nickname! }
  35.   }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement