Advertisement
Jousway

Zettbot 0.3.4

Jun 19th, 2012
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 8.35 KB | None | 0 0
  1. ;~~~~ Version 0.3.4 ~~~~
  2.  
  3. On *:Start:{
  4.   .server irc.something.something
  5.   .server -m irc.something2.something
  6. }
  7. On *:Connect:{
  8.   if ($network == somthing ) {
  9.     /timer 1 1   .join #somthing
  10.     /timer 1 1   .join #somthing2
  11.  
  12.   }
  13.   if ($network == somthing2 ) {
  14.     /timer 1 1   .join #somthing
  15.   }
  16. }
  17.  
  18. ;~~ time for some bot codes ~~
  19.  
  20. on *:text:Z.code:*: {
  21.   msg $chan http://pastebin.com/nbMnAhCj
  22. }
  23.  
  24. ;~~~~ Join / Leave ~~~~
  25. on *:text:z.Join*:*: {
  26.   var %ownercheck user@something.something
  27.   if ($address !isin %ownercheck) {
  28.     msg $chan nope
  29.   }
  30.   else {
  31.     /join #$2
  32.   }
  33. }
  34.  
  35. on *:text:z.leave:*: {
  36.   var %ownercheck user@something.something
  37.   if ($address !isin %ownercheck) {
  38.     msg $chan lol nope
  39.   }
  40.   else {
  41.     /leave $chan YES MY MASTER  
  42.   }
  43. }
  44.  
  45. ;~~~~ Welcome ~~~~
  46.  
  47. on *:text:Zettbot:*: {
  48.   msg $chan 3Zettbot V0.3.4 Created by Jousway - 7For commands use Z.Info for basic commands and Z.Sminfo for stepmania commands
  49. }
  50.  
  51. ;~~~~ Command Codes ~~~~
  52.  
  53. on *:text:Z.info:*: {
  54.   msg $chan 3Zettbot v0.3.4 Commands - 7For command info use Z.info Z."command" - 12Z.google Z.sbooru Z.rb Z.8ball z.or
  55. }
  56.  
  57. on *:text:Z.Hinfo:*: {
  58.   msg $chan 3Zettbot v0.3.4 Commands 13+Hentai - 7For command info use Z.info Z."command" - 12Z.google 13Z.mugi Z.ghentai Z.exhentai 12Z.sbooru 13Z.dbooru Z.gbooru 12Z.rb Z.8ball z.or
  59. }
  60.  
  61. on *:text:Z.Sminfo:*: {
  62.   msg $chan 3Zettbot v0.3.4 Commands Stepmania - 7For command info use Z.SMinfo Z."command" - T = Theme, N = Noteskin 12Basic: Z.Download Z.Toriginal Z.Tports Z.Ndance Z.Npump 4Help: Z.Lua Z.Twiki Z.Nwiki (unfinished) Z.Bug
  63. }
  64.  
  65. ;~~~ explained info ~~~
  66.  
  67. on *:text:Z.info Z.google:*: {
  68.   msg $chan Z.google - Google Search.
  69. }
  70.  
  71. on *:text:Z.info Z.mugi:*: {
  72.   msg $chan Z.mugi - MugiMugi The Doujinshi & Manga Lexicon.
  73. }
  74.  
  75. on *:text:Z.info Z.ghentai:*: {
  76.   msg $chan Z.ghentai - E-Hentai Galleries - The Free Hentai Doujinshi, Manga, HCG and Image Gallery System.
  77. }
  78.  
  79. on *:text:Z.info Z.exhentai:*: {
  80.   msg $chan Z.exhentai - SAD PANDA.
  81. }
  82.  
  83. on *:text:Z.info Z.dbooru:*: {
  84.   msg $chan Z.dbooru - Danbooru Anime Imageboard Search, add Pool, Tag or Artist to search in those categories.
  85. }
  86.  
  87. on *:text:Z.info Z.gbooru:*: {
  88.   msg $chan Z.dbooru - Gelbooru Anime Imageboard Search.
  89. }
  90.  
  91. on *:text:Z.info Z.sbooru:*: {
  92.   msg $chan Z.dbooru - Safebooru Anime Imageboard Search.
  93. }
  94.  
  95. on *:text:Z.info Z.rb:*: {
  96.   msg $chan Z.rb - Rainbow text.
  97. }
  98.  
  99. ;on *:text:Z.info Z.fw:*: {
  100. ;  msg $chan Z.fw - THE FUCKING WEATHER.
  101. ;}
  102.  
  103. on *:text:Z.info Z.8ball:*: {
  104.   msg $chan Z.8ball - Shake the 8ball for a question.
  105. }
  106.  
  107. on *:text:Z.info Z.or:*: {
  108.   msg $chan Z.8ball - value1 or value2.
  109. }
  110.  
  111. ;~~~ explained SmInfo ~~~
  112.  
  113. ;~~ basics ~~
  114.  
  115. on *:text:Z.sminfo Z.Download:*: {
  116.   msg $chan Z.Download - Sm5 google page with latest stable stepmania download
  117. }
  118.  
  119. on *:text:Z.sminfo Z.Toriginal:*: {
  120.   msg $chan Z.Toriginal - List of themes created for sm5 by the SSC.
  121. }
  122.  
  123. on *:text:Z.sminfo Z.Tports:*: {
  124.   msg $chan Z.Tports - List of themes ported for sm5 by the SSC.
  125. }
  126.  
  127. on *:text:Z.sminfo Z.Ndance:*: {
  128.   msg $chan Z.Ndance - List of Noteskins ported for sm5 for the Dance gametype by Jousway.
  129. }
  130.  
  131. on *:text:Z.sminfo Z.Npump:*: {
  132.   msg $chan Z.Npump - List of Noteskins ported for sm5 for the Pump gametype by Jousway.
  133. }
  134.  
  135. ;~~ help ~~
  136.  
  137. on *:text:Z.sminfo Z.Lua:*: {
  138.   msg $chan Z.Lua - List of lua commands used in sm5.
  139. }
  140.  
  141. on *:text:Z.sminfo Z.Twiki:*: {
  142.   msg $chan Z.Twiki - Website to help you with theming.
  143. }
  144.  
  145. on *:text:Z.sminfo Z.Nwiki:*: {
  146.   msg $chan Z.Nwiki - Website to help you with creating noteskins (unfinished).
  147. }
  148.  
  149. on *:text:Z.sminfo Z.Bug:*: {
  150.   msg $chan Z.Bug - sm5 Bugtracker.
  151. }
  152.  
  153.  
  154. ;~~~~ Main search codes ~~~~~
  155.  
  156. ;~~~ google basic code ~~~
  157.  
  158. on *:text:Z.google *:*: {
  159.   if ($2 = $null) {
  160.     halt
  161.   }
  162.   else {
  163.     msg $chan http://www.google.com/search?q= $+ $htmlfrm($2-)
  164.     halt
  165.   }
  166. }
  167.  
  168. ;on *:text:Z.google+1*:*: {
  169. ; if ($2 = $null) {
  170. ;    halt
  171. ;  }
  172. ;  else {
  173. ;    msg $chan http://www.google.com/search?q= $+ $htmlfrm($2-)
  174. ;    sockopen google1 google.com 80
  175. ;    halt
  176. ;  }
  177. ;}
  178.  
  179. ;~~~ MugiMugi ~~~
  180.  
  181. on *:text:Z.mugi*:*: {
  182.   if ($2 = $null) {
  183.     halt
  184.   }
  185.   else {
  186.     msg $chan http://doujinshi.mugimugi.org/search/simple/?T=objects&sn= $+ $htmlfrm($2-)
  187.     halt
  188.   }
  189. }
  190.  
  191. ;~~~ Danbooru ~~~
  192.  
  193. on *:text:Z.dbooru*:*: {
  194.   if ($2 = $null) {
  195.     halt
  196.   }
  197.   elseif ($2 = pool) {
  198.     msg $chan http://danbooru.donmai.us/pool?query= $+ $htmlfrm($3-)
  199.   }
  200.   elseif ($2 = tag) {
  201.     msg $chan http://danbooru.donmai.us/tag?&name= $+ $htmlfrm($3-)
  202.   }
  203.   elseif ($2 = artist) {
  204.     msg $chan http://danbooru.donmai.us/artist?name= $+ $htmlfrm($3-)
  205.   }
  206.   else {
  207.     msg $chan http://danbooru.donmai.us/post?tags= $+ $htmlfrm($2-)
  208.     halt
  209.   }
  210. }
  211.  
  212. ;~~~ Gelbooru ~~~
  213.  
  214. on *:text:Z.gbooru*:*: {
  215.   if ($2 = $null) {
  216.     halt
  217.   }
  218.   else {
  219.     msg $chan http://gelbooru.com/index.php?page=post&s=list&tags= $+ $htmlfrm($2-)
  220.     halt
  221.   }
  222. }
  223.  
  224. ;~~~ Safebooru ~~~
  225.  
  226. on *:text:Z.sbooru*:*: {
  227.   if ($2 = $null) {
  228.     halt
  229.   }
  230.   else {
  231.     msg $chan http://safebooru.org/index.php?page=post&s=list&tags= $+ $htmlfrm($2-)
  232.     halt
  233.   }
  234. }
  235.  
  236. ;~~~ g.e-hentai ~~~
  237.  
  238. on *:text:Z.ghentai*:*: {
  239.   if ($2 = $null) {
  240.     halt
  241.   }
  242.   else {
  243.     msg $chan http://g.e-hentai.org/?f_doujinshi=1&f_manga=1&f_search= $+ $htmlfrm($2-)
  244.     halt
  245.   }
  246. }
  247.  
  248. ;~~~ exhentai ~~~
  249.  
  250. on *:text:Z.exhentai*:*: {
  251.   if ($2 = $null) {
  252.     halt
  253.   }
  254.   else {
  255.     msg $chan http://exhentai.org/?f_doujinshi=1&f_manga=1&f_search= $+ $htmlfrm($2-)
  256.     halt
  257.   }
  258. }
  259.  
  260. ;~~~~ Stepmania ~~~~~
  261.  
  262. on *:text:Z.Download*:*: {
  263.   msg $chan http://code.google.com/p/sm-ssc/downloads/list
  264. }
  265.  
  266. on *:text:Z.Toriginal*:*: {
  267.   msg $chan http://ssc.ajworld.net/?p=projects
  268. }
  269.  
  270. on *:text:Z.Tports*:*: {
  271.   msg $chan http://ssc.ajworld.net/?p=ports
  272. }
  273.  
  274. on *:text:Z.Ndance*:*: {
  275.   msg $chan http://jousway.co.uk/Unlimited_Stepman_Works/_Noteskin/SM5/Dance/
  276. }
  277.  
  278. on *:text:Z.Npump*:*: {
  279.   msg $chan http://jousway.co.uk/Unlimited_Stepman_Works/_Noteskin/SM5/Pump/
  280. }
  281.  
  282. on *:text:Z.Lua*:*: {
  283.   msg $chan http://kki.ajworld.net/lua/sm5/Lua.xml
  284. }
  285.  
  286. on *:text:Z.Twiki*:*: {
  287.   msg $chan http://kki.ajworld.net/wiki/Main_Page
  288. }
  289.  
  290. on *:text:Z.Nwiki*:*: {
  291.   msg $chan http://jousway.co.uk/Unlimited_Stepman_Works/wiki/index.php/Understanding_and_Creating_Noteskins (unfinished)
  292. }
  293.  
  294. on *:text:Z.Bug*:*: {
  295.   msg $chan http://ssc.ajworld.net/sm-ssc/bugtracker/my_view_page.php
  296. }
  297.  
  298.  
  299.  
  300. ;~~~~ Other Stuff ~~~~
  301.  
  302. ;~~~ Better Better Booru ~~~
  303.  
  304. on *:text:*Z.BBBooru*:*: {
  305.   msg $chan http://userscripts.org/scripts/show/100614
  306. }
  307.  
  308. ~~~ RAINBOWS ~~~
  309.  
  310. on *:text:Z.rb*:*: {
  311.   if ($2 = $null) {
  312.     halt
  313.   }
  314.   else {
  315.     var %a = 04 07 08 09 11 12 06
  316.     msg $chan $regsubex($2-,/([^ ])/g,$+($chr(3),$gettok(%a,$iif($calc(\n % $numtok(%a,32)),$v1,$numtok(%a,32)),32),$chr(44),01,\1))
  317.     halt
  318.   }
  319. }
  320.  
  321. ;~~~ 8ball ~~~~
  322.  
  323. on *:text:Z.8ball*:*: {
  324.   if ($2 = $null) {
  325.     halt
  326.   }
  327.   else {
  328.     /set %8ball $rand(1,5)
  329.     /describe $chan shaking dat 8ball
  330.     if ((%8ball == 1)) msg $chan 8ball: yes
  331.     if ((%8ball == 2)) msg $chan 8ball: no
  332.     if ((%8ball == 3)) msg $chan 8ball: proably
  333.     if ((%8ball == 4)) msg $chan 8ball: doubt it
  334.     if ((%8ball == 5)) msg $chan 8ball: ask again later
  335.   }
  336. }
  337.  
  338. ;~~~ OR ~~~~
  339.  
  340. on *:text:Z.or*:*: {
  341.   if ($2 = $null) {
  342.     halt
  343.   }
  344.   else {
  345.     if ($3 = or) {
  346.       /set %or $rand(1,2)
  347.       if ((%or == 1)) msg $chan $2
  348.       if ((%or == 2)) msg $chan $4
  349.     }
  350.     else msg $chan please use 1 word between and after or
  351.   }
  352. }
  353.  
  354. ;~~~ ORTEST ~~~~
  355.  
  356.  
  357. ;on *:text:Z.testor*:*: {
  358. ;  if ($2 = $null) {
  359. ;    halt
  360. ;  }
  361. ;  else {
  362. ;    if ($ = or) {
  363. ;      /set %v0 if (($ == or))
  364. ;      /set %or $rand(1,2)
  365. ;      if ((%or == 1)) msg $chan -%v0
  366. ;      if ((%or == 2)) msg $chan %v0-
  367. ;    }
  368. ;  }
  369. ;}
  370.  
  371.  
  372.  
  373. ;~~~~ Definers/sockets ~~~~
  374.  
  375. ;~~~ google socket ~~~
  376.  
  377. ;on *:sockopen:google1:{
  378. ;  sockwrite -n $sockname GET / HTTP/1.1
  379. ;  sockwrite -n $sockname Host: http://www.google.com/search?q= $+ $htmlfrm($2-)
  380. ;}
  381.  
  382. ;on *:sockread:google1:{
  383. ;  sockread %temp
  384. ;  echo -a %temp
  385. ;}
  386.  
  387. ;~~~ htmlfrm definer ~~~
  388.  
  389. alias htmlfrm {
  390.   var %i = 1,%r
  391.   while (%i <= $len($1-)) {
  392.     if ($mid($1-,%i,1) isalnum) { %r = %r $+ $ifmatch }
  393.     else { %r = %r $+ % $+ $base($asc($mid($1-,%i,1)),10,16,2) }
  394.     inc %i
  395.   }
  396.   return %r
  397. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement