Advertisement
westor

Twitch Adding Subscribers for VitruxPT v3.0

Feb 5th, 2015
468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.61 KB | None | 0 0
  1. ON *:TEXT:SPECIALUSER & subscriber:?: {
  2.   if ($nick !== JTV) { return }
  3.   var %f = subs.txt
  4.   if ($read(%f,nw,$2)) { return }
  5.   write $qt(%f) $2
  6.   set %last_sub $2
  7. }
  8.  
  9. ON !*:TEXT:!*:#: {
  10.   tokenize 32 $strip($1-,burci)
  11.   var %f = subs.txt
  12.   if ($nick == VitruxPT) {
  13.     if ($1 == !subupdate) {
  14.       .msg $chan ( $+ $nick $+ ): Updating now the Subscriber database...
  15.       raw TWITCHCLIENT 2
  16.     }
  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 nickname! | 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.   }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement