DrUmMiSt

Test Bot - Various sources - credit when finished

Aug 24th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.08 KB | None | 0 0
  1. on *:TEXT:!follow:#: {
  2. if ((%floodfollow) || ($($+(%,floodfollow.,$nick),2))) { return }
  3. set -u10 %floodfollow On
  4. set -u30 %floodfollow. $+ $nick On
  5. msg $chan /me Do you like what you see? Want to see more? Hit that follow button and get notified when I go live! $+
  6. }
  7. on *:TEXT:!Ria:#: {
  8. msg $chan /me Go check out Ria's stream over at www.twitch.tv/ria_gaming she plays all types of games from emulated classics to the latest alpha releases. $+
  9. }
  10. on *:TEXT:!GG:#: {
  11. msg $chan /me BOOM your dead!! $+
  12. }
  13. on *:TEXT:!lag:#: {
  14. msg $chan /me The Lag is due to the imense amount of parts in the main ship - The LAG is pure game-only lag, It will improve as 11 individual vessels un-dock! $+
  15. }
  16. on *:TEXT:!helproulette:#: {
  17. msg $chan /me If the chat is a little quiet why not take a game of chance? Type !Roulette into the chat and see if you get a 1 in 6 chance of a 2 minute time-out (just for fun!)(MODs need not apply) $+
  18. }
  19. on *:TEXT:!Sfail:#: {
  20. msg $chan /me This was not one of my greatest Landings! - http://www.twitch.tv/spurgurgle/c/4534992 $+
  21. }
  22. on *:TEXT:!SEve:#: {
  23. msg $chan /me checkout my highlight of my Eve landing - http://www.twitch.tv/spurgurgle/c/4934674 $+
  24. }
  25. on *:TEXT:#A:#: {
  26. msg $chan /me That looks hard, do better! $+
  27. }
  28. on *:TEXT:#B:#: {
  29. msg $chan /me That defiantly looks too easy, wish I could make it harder! $+
  30. }
  31. on *:TEXT:!BOT:#: {
  32. msg $chan /me Warfare points are a sytem for playing games and for future raffles/giveaways, I am being written and coded as this stream is live (type !commands for a list of my commands) $+
  33. }
  34. on *:TEXT:!thanks:#: {
  35. msg $chan /me Thanks for watching - If you don't already please hit the follow button and get notified when I go live! $+
  36. }
  37. on *:TEXT:!hype:#: {
  38. msg $chan /me #IKEBIKEHYPE $+
  39. }
  40. on *:TEXT:!multi:#: {
  41. msg $chan /me Go check out the multi stream over at multitwitch.tv/drummist/spurgurgle $+
  42. }
  43. on *:TEXT:!mods:#: {
  44. msg $chan /me Currently I am only using Kerbal Engineer everything else is STOCK $+
  45. }
  46. on *:TEXT:!lurkon:#: {
  47. msg $chan /me $nick - LURK MODE engaged $+
  48. }
  49. on *:TEXT:!lurkoff:#: {
  50. msg $chan /me $nick - LURK MODE disengaged $+
  51. }
  52. on *:TEXT:!commands:#: {
  53. msg $chan /me !follow, !GG, !multi, !mods, !lurkon, !lurkoff, !lag, ,!SEve, !SFail, !helproulette, !Giveaway, !Roulette, !Chuck, !BOT, !points, !Thanks, #A, #B, !hype $+
  54. }
  55. alias -l addPoints {
  56. if ($1 !isnum) { echo 2 -st $1 is not a number. It needs to be a number. | halt }
  57. var %topic $+($chan,.,$nick)
  58. var %points $calc($readini(Points.ini,%topic,Points) + $1)
  59. writeini -n Points.ini %topic Points %points
  60. return %points
  61. }
  62. alias -l lookUpPoints {
  63. var %topic $+($chan,.,$nick)
  64. var %points $readini(Points.ini,%topic,Points)
  65. return %points
  66. }
  67. alias doaddpoints {
  68. if ($3 !isnum) { echo 2 -st $3 is not a number. It needs to be a number. | halt }
  69. var %topic $+($1,.,$2)
  70. var %points $calc($readini(Points.ini,%topic,Points) + $3)
  71. writeini -n Points.ini %topic Points %points
  72. echo -a Added points for %topic
  73. }
  74.  
  75. alias dorempoints {
  76. var %topic $+($1,.,$2)
  77. remini -n Points.ini %topic Points
  78. echo -a Removed points for %topic
  79. }
  80. on *:text:!points:#:{
  81. if ((%floodpoints) || ($($+(%,floodpoints.,$nick),2))) { return }
  82. set -u10 %floodpoints On
  83. set -u30 %floodpoints. $+ $nick On
  84. msg # /me $nick has $readini(Points.ini,$+(#,.,$nick),Points) Warfare points.
  85. }
  86. on $*:text:/!points (add|remove)/Si:#:{
  87. if ($nick isop #) {
  88. if ($0 < 3) { msg # Insufficient parameters: Use !points <add|remove> <user> [number] | return }
  89. writeini -n Points.ini $+(#,.,$3) Points $calc($readini(Points.ini,$+(#,.,$3),Points) $iif($2 == add,+,-) $iif($4 isnum,$4,1))
  90. { msg $chan $3 now has $readini(Points.ini,$+(#,.,$3),Points) total points. }
  91. }
  92. else { msg $chan This command is only available to moderators. }
  93. }
  94. on !*:join:#:{
  95. $+(.timerpoints.,#,.,$nick) 0 120 add.pts $+(#,.,$nick)
  96. add.pts $+(#,.,$nick)
  97. if ((%floodjoin) || ($($+(%,floodpoints.,$nick),2))) { return }
  98. set -u10 %floodjoin On
  99. set -u30 %floodjoin. $+ $nick On
  100. msg $chan /me Welcome $nick to the channel you are now earning Warfare points (I am a WIP Bot and may be a bit quirky - Enjoy the Stream! $+
  101. }
  102. on !*:part:#:$+(.timerpoints.,#,.,$nick) off
  103. alias -l add.pts {
  104. writeini -n Points.ini $1 Points $calc($readini(Points.ini,$1,Points) + 1)
  105. }
  106. On *:TEXT:!Roulette:#: {
  107. if ((%floodroulette) || ($($+(%,floodroulette.,$nick),2))) { return }
  108. set -u1 %floodroulette On
  109. set -u5 %floodroulette. $+ $nick On
  110. if ($nick isop #) msg $chan $nick should know MOD's can't play this game
  111. else {
  112. var %randnumber = $rand(1,6)
  113. if (%randnumber == 1) {
  114. msg $chan BANG!... The gun Fires! and a bullet goes off... $nick is shaking so badly that it MISSES him but hits some metal and reflects back into $nick's head.
  115. msg $chan /timeout $nick 120
  116. }
  117. elseif (%randnumber == 2) {
  118. msg $chan *Click* ...Empty...You live to see another day $nick
  119. }
  120. elseif (%randnumber == 3) {
  121. msg $chan ..... BANG! ... Luckily it was only a blank!
  122. }
  123. elseif (%randnumber == 4) {
  124. msg $chan $nick starts to shake, $nick tries to pull the trigger but can't. $nick drops the gun, $nick isn't up for the challenge...
  125. }
  126. elseif (%randnumber == 5) {
  127. msg $chan *Click* - O_o you got away this time $nick
  128. }
  129. elseif (%randnumber == 6) {
  130. msg $chan *Click* - Fate is on your side today $nick
  131. }
  132. }
  133. }
  134. on *:text:!Giveaway:#:{
  135. if ((%floodGiveaway) || ($($+(%,floodGiveaway.,$nick),2))) { return }
  136. set -u10 %floodGiveaway On
  137. set -u30 %floodGiveaway. $- $nick On
  138. if ($nick isop #) { msg # /me Looking for a winner. }
  139. if ($nick isop #) { .timer 1 5 msg # /me Still shuffling the files }
  140. if ($nick isop #) { .timer 1 10 msg # /me $nick(#,$rand(1,$nick(#,0))) Just won a prize, I will be sending you a PM via Twitch. }
  141. if ($nick isop #) { .timer 1 15 msg # /me Congratulations! }
  142. else { msg # $nick you do not have permission to use this command! }
  143. }
  144. on *:TEXT:!top10:#:{
  145. if ($nick isop #) { top10 # }
  146. else { msg # You are not allowed to use !top10. }
  147. }
  148.  
  149. alias -l top10 {
  150. window -h @. | var %i 1
  151. while $gettok($remove($read(points.ini,w,$+(*,$1,*),%i),[,]),2,46) {
  152. var %n $v1, %p $gettok($read(points.ini,$calc($readn + 1)),2,61)
  153. aline @. %n %p
  154. var %i $calc($readn + 1)
  155. }
  156. filter -cetuww 2 32 @. @.
  157. var %i 1 | while %i <= 10 {
  158. var %list $addtok(%list,$line(@.,%i),44)
  159. inc %i
  160. }
  161. msg $1 Top 10 point are: $replace(%list,$chr(44),$+($chr(44),$chr(32)))
  162. window -c @.
  163. }
  164. alias addchuck {
  165. write chuck.txt $$?=\"Add a chucky joke here XD.\"
  166. }
  167. alias remchuck {
  168. write -d chuck.txt $$?=\"Remove a chucky joke X<\"
  169. }
  170. on *:text:*:#: {
  171. if ($strip($1) == !chuck) { .msg $chan $read(chuck.txt) }
  172. if ($strip($1) == !addchuck) { write chuck.txt $2- | .notice $nick Your chucky joke \" $+ $2- $+ \" has been added! }
  173. if ($strip($1) == !remchuck) {
  174. if ($2- == $read(chuck.txt)) {
  175. write -d chuck.txt
  176. .notice $nick Your chucky joke \" $+ $2- $+ \" has been removed!
  177. }
  178. }
  179. }
Add Comment
Please, Sign In to add comment