Advertisement
_MM_IKKE

botcontrol.ini

Nov 21st, 2018
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 6.91 KB | None | 0 0
  1. [script]
  2. n0=on 500,543:TEXT:*:#: { halt }
  3. n1=on *:LOAD: {
  4. n2=  echo -at Loaded Bot control
  5. n3=  echo -at No new variables added, all are global
  6. n4=}
  7. n5=on *:UNLOAD: {
  8. n6=  echo -at Unloaded Bot control
  9. n7=  echo -at No variables unset, all are global
  10. n8=}
  11. n9=on *:TEXT:!Global*:#:{
  12. n10=  if ($nick == %owner && $1 == !global && $me == %bot1) {
  13. n11=    if ($2) {
  14. n12=      scon $bot_say($chan) amsg 4Global Announcement:1 $2-
  15. n13=    }
  16. n14=    else {
  17. n15=      scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !global <message>
  18. n16=    }
  19. n17=  }
  20. n18=  elseif ($1 == !global && $me == %bot1) {
  21. n19=    scon $bot_say($chan) msg $chan 4ERROR:1 You are not authorized to use this command
  22. n20=  }
  23. n21=}
  24. n22=on *:TEXT:!warn*:#: {
  25. n23=  if ($chan != #mini-missions && $chan != #UGP.echo) {
  26. n24=    if ($1 == !warn && $nick == %owner && $me == %bot1) {
  27. n25=      if (!$2) {
  28. n26=        scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !warn <reason>
  29. n27=      }
  30. n28=      elseif ($calc($gmt - $chan_warnt($chan)) < 86400) {
  31. n29=        writeini channels\ $+ $chan $+ .ini control warnt $gmt
  32. n30=        inc_warns $chan
  33. n31=        scon $bot_say($chan) msg #[MM]IKKE 4WARNING:1 Channel $chan got a warning! Reason: $2- ( $+ $chan_warns($chan) $+ /5)
  34. n32=        scon $bot_say($chan) msg $chan 4WARNING:1 Channel $chan got a warning! Reason: $2- ( $+ $chan_warns($chan) $+ /5)
  35. n33=        if ($chan_warns($chan) == 5) {
  36. n34=          warn_chan_leave $1
  37. n35=        }
  38. n36=      }
  39. n37=      else {
  40. n38=        scon $bot_say($chan) msg $chan 4ERROR:1 Channel already got a warning within last 24 hours!
  41. n39=      }
  42. n40=    }
  43. n41=    elseif ($1 == !warn && $me == %bot1) {
  44. n42=      scon $bot_say($chan) msg $chan 4ERROR:1 You are not authorized to use this command
  45. n43=    }
  46. n44=  }
  47. n45=}
  48. n46=on *:TEXT:!changenick*:#: {
  49. n47=  if ($nick == %owner && $1 == !changenick) {
  50. n48=    if ($2 == $null && $me == %bot1) { scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !changenick <newnick> <oldnick> }
  51. n49=    elseif ($3 == $null && $me == %bot1) { scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !changenick <newnick> <oldnick> }
  52. n50=    elseif (!$mybots($3) && $me == %bot1) {
  53. n51=      .timer 1 5 if (!$mybots($3)) {  scon $bot_say($chan) msg $chan 4ERROR:1 $3 is not a bot }
  54. n52=    }
  55. n53=    elseif ($me == $3) {
  56. n54=      if ($2 == IKKE1) {
  57. n55=        ghostbot1
  58. n56=        nick $2
  59. n57=      }
  60. n58=      elseif ($2 == IKKE2) {
  61. n59=        ghostbot2
  62. n60=        nick $2
  63. n61=      }
  64. n62=
  65. n63=
  66. n64=      /*
  67. n65=      elseif ($2 == IKKE3) {
  68. n66=        ghostbot3
  69. n67=        nick $2
  70. n68=      }
  71. n69=      elseif ($2 == IKKE4) {
  72. n70=        ghostbot4
  73. n71=        nick $2
  74. n72=      }
  75. n73=      */
  76. n74=
  77. n75=
  78. n76=      else {
  79. n77=        if ($me == %bot1) {
  80. n78=          nick $2
  81. n79=        }
  82. n80=        elseif ($me == %bot2) {
  83. n81=          nick $2
  84. n82=        }
  85. n83=
  86. n84=
  87. n85=        /*
  88. n86=        elseif ($me == %bot3) {
  89. n87=          nick $2
  90. n88=        }
  91. n89=        elseif ($me == %bot4) {
  92. n90=          nick $2
  93. n91=        }
  94. n92=        */
  95. n93=
  96. n94=
  97. n95=      }
  98. n96=    }
  99. n97=  }
  100. n98=  elseif ($me == %bot1 && $1 == !changenick) { scon $bot_say($chan) msg $chan 4ERROR:1 You are not authorized to use this command }
  101. n99=}
  102. n100=on *:TEXT:!login:#: {
  103. n101=  if ($nick == %owner) {
  104. n102=    botsajoin
  105. n103=    if ($me == %bot1) { scon $bot_say($chan) msg $chan Successfully logged in! }
  106. n104=  }
  107. n105=  elseif ($me == %bot1) { scon $bot_say($chan) msg $chan 4ERROR:1 You are not authorized to use this command }
  108. n106=}
  109. n107=on *:TEXT:!ajoin:#: {
  110. n108=  if ($nick == %owner) {
  111. n109=    botsaddajoin $chan
  112. n110=  }
  113. n111=  elseif ($nick != %owner && $me == %bot1) { scon $bot_say($chan) msg $chan 4ERROR:1 You are not authorized to use this command }
  114. n112=}
  115. n113=on *:TEXT:!deljoin:#: {
  116. n114=  if ($nick == %owner) {
  117. n115=    botsdelajoin $chan
  118. n116=  }
  119. n117=  elseif ($nick != %owner && $me == %bot1) { scon $bot_say($chan) msg $chan 4ERROR:1 You are not authorized to use this command }
  120. n118=}
  121. n119=on *:TEXT:!unloadbots*:#: {
  122. n120=  if ($nick == %owner && $1 == !unloadbots) {
  123. n121=    if ($2) {
  124. n122=      .quit $2-
  125. n123=    }
  126. n124=    else {
  127. n125=      .quit Exit requested (BotScript %version by [MM]IKKE)
  128. n126=    }
  129. n127=  }
  130. n128=  elseif ($me == %bot1 && $1 == !unloadbots) {
  131. n129=    scon $bot_say($chan) msg $chan 4ERROR:1 You are not authorized to use this command
  132. n130=  }
  133. n131=}
  134. n132=on *:TEXT:!leave*:#: {
  135. n133=  if ($nick == %owner && $1 == !leave) {
  136. n134=    if ($2) { .leave $chan $2- }
  137. n135=    else { .leave $chan Leaving requested }
  138. n136=  }
  139. n137=  elseif ($me == %bot1 && $1 == !leave) {
  140. n138=    scon $bot_say($chan) msg $chan 4ERROR:1 You are not authorized to use this command
  141. n139=  }
  142. n140=}
  143. n141=on *:TEXT:!rejoin*:#: {
  144. n142=  if ($nick == %owner && $1 == !rejoin) {
  145. n143=    if ($me == %bot1) { .timer -o 1 $rand(3,15) .server -e %irc.server 6697 -i IKKE1 }
  146. n144=    elseif ($me == %bot2) { .timer -o 1 $rand(3,15) .server -e %irc.server 6697 -i IKKE2 }
  147. n145=
  148. n146=    .timer -o 1 $rand(15,20) msg $chan Rejoined succesfully!
  149. n147=
  150. n148=    if ($2) { .quit $2- }
  151. n149=    else { .quit Rejoining... }
  152. n150=  }
  153. n151=  elseif ($me == %bot1 && $1 == !rejoin) { scon $bot_say($chan) msg $chan 4ERROR:1 You are not authorized to use this command }
  154. n152=}
  155. n153=on *:TEXT:!hop*:#: {
  156. n154=  if ($nick == %owner && $1 == !hop) {
  157. n155=    if ($me == $2) {
  158. n156=      if ($3) { .hop -n $chan $3- }
  159. n157=      else { .hop -n $chan Hop requested }
  160. n158=    }
  161. n159=    elseif ($2 == $null && $me == %bot1) { scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !hop <botnick> }
  162. n160=    elseif ($me == %bot1 && !$mybots($2)) { scon $bot_say($chan) msg $chan 4ERROR:1 $2 is not a bot }
  163. n161=  }
  164. n162=  elseif ($me == %bot1 && $1 == !hop) { scon $bot_say($chan) msg $chan 4ERROR:1 You are not authorized to use this command }
  165. n163=}
  166. n164=on *:TEXT:!allbotshop*:#: {
  167. n165=  if ($nick == %owner && $1 == !allbotshop) {
  168. n166=    if ($2) { .hop -n $chan $2- }
  169. n167=    else { .hop  -n $chan Hop requested }
  170. n168=  }
  171. n169=  elseif ($me == %bot1 && $1 == !allbotshop) { scon $bot_say($chan) msg $chan 4ERROR:1 You are not authorized to use this command }
  172. n170=}
  173. n171=on *:TEXT:!join*:#: {
  174. n172=  if ($nick == %owner && $1 == !join) {
  175. n173=    if (($2 == $null || $left($2,1) != $chr(35)) && $me == %bot1) { scon $bot_say($chan) msg $chan 4ERROR:1 Usage: !join <channel> }
  176. n174=    elseif ($2) {
  177. n175=      if ($me ison $2) { msg $chan 4ERROR:1 I'm already at $chan($2) }
  178. n176=      elseif ($me ison $chr(35) $+ $2) { msg $chan 4ERROR:1 I'm already at $chan( $chr(35) $+ $2 ) }
  179. n177=      elseif ($left($2,1) == $chr(35)) { join -n $2 }
  180. n178=      else { join -n $chr(35) $+ $2 }
  181. n179=    }
  182. n180=  }
  183. n181=  elseif ($me == %bot1 && $1 == !join) { scon $bot_say($chan) msg $chan 4ERROR:1 You are not authorized to use this command }
  184. n182=}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement