Advertisement
Guest User

alcounit

a guest
Sep 19th, 2008
855
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.46 KB | None | 0 0
  1. First of all you need install and configure pzs-ng on wzdftpd, how to do it read here.
  2. Also you need bot - Eggdrop.
  3.  
  4. Copy these files from pzs-ng install dir to eggdrop scripts dir: plugins, themes, dZSbot.conf.defaults, dZSbot.help, dZSbot.tcl, dZSbot.vars
  5.  
  6. Now we need prepare pzs-nd dir. Go to dir where pzs-ng installed (this dir you set when configuring pzs-ng), in bin dir you must create empty +x file: showlog. In etc dir also create empty files: group, passwd, glftpd.conf. After this rename dZSbot.conf.defaults to dZSbot.conf and start edit:
  7.  
  8. #############################################################
  9. # Project Zipscript Next Generation - Sitebot Configuration #
  10. # (originally by Dark0n3) #
  11. # This is configuration for dZSbot.tcl #
  12. # #
  13. # IMPORTANT! #
  14. # ---------- #
  15. # DO NOT EDIT THIS FILE! COPY SETTINGS YOU WISH TO CHANGE #
  16. # FROM THIS FILE AND PUT THEM IN dZSbot.conf #
  17. # #
  18. #############################################################
  19. # BASIC CONFIG #
  20. #############################################################
  21. # Locations of all the usual files, change is usually only required
  22. # if you have another glroot than /glftpd/.
  23. set location(PASSWD) "/dir_where_pzs-ng_installed/etc/passwd"
  24. #set location(USERS) "/glftpd/ftp-data/users/"
  25. set location(GLCONF) "/dir_where_pzs-ng_installed/etc/glftpd.conf"
  26. set location(GROUP) "/dir_where_pzs-ng_installed/etc/group"
  27.  
  28. # Log Files - If you wish to read several logfiles, uncomment/add and change the following.
  29. set glftpdlog(NORMAL) "/dir_where_pzs-ng_installed/ftp-data/logs/glftpd.log"
  30. #set loginlog(NORMAL) "$glroot/ftp-data/logs/login.log"
  31. #set sysoplog(NORMAL) "$glroot/ftp-data/logs/sysop.log"
  32. #set glftpdlog(EXTERNAL) "$glroot/ftp-data/logs/glftpd.log"
  33. #set loginlog(EXTERNAL) "$glroot/ftp-data/logs/login.log"
  34. #set sysoplog(EXTERNAL) "$glroot/ftp-data/logs/sysop.log"
  35. set max_log_change 2048
  36.  
  37. # These are the binaries the script will use. They are usually best left
  38. # as their default values (btw, check that they all are where they should
  39. # and chmodded to executable (chmod 755 <file>).
  40. set binary(INCOMPLETE) "/dir_where_pzs-ng_installed/bin/incomplete-list.sh"
  41. set binary(PASSCHK) "/dir_where_pzs-ng_installed/bin/passchk"
  42. #set binary(SHOWLOG) "/glftpd/bin/showlog"
  43. #set binary(STATS) "/glftpd/bin/stats"
  44. #set binary(WHO) "/glftpd/bin/sitewho"
  45. set binary(CURL) "/usr/local/bin/curl"
  46. set binary(DF) "/bin/df"
  47. set binary(PING) "/bin/ping"
  48. #set binary(PING) "/sbin/ping" ;# FreeBSD
  49. set binary(UPTIME) "/usr/bin/uptime"
  50.  
  51. # Enable dZSbot debug mode, useful for tracking down announce problems.
  52. set debugmode "TRUE"
  53.  
  54. # This is needed for autodetection of glversion. If you unset this, use_glftpd2
  55. # MUST be set to TRUE or FALSE.
  56. set binary(GLFTPD) "/dir_where_wzdftpd_bin_present/wzdftpd"
  57.  
  58. # Should the bot die if a binary is missing - or just output that something is wrong?
  59. set die_on_error "FALSE"
  60.  
  61. # Allow people to invite themselves to the channel through IRC. WARNING! This is
  62. # considered a security threat because if someone steals the nickname of the bot
  63. # they will be able to easily harvest usernames/passwords. CONSIDER WITH CAUTION!
  64. set enable_irc_invite "FALSE"
  65.  
  66. # Are you using glftpd2? Default setting ("AUTO") should be safe,
  67. # enables autodetection (if binary(GLFTPD) is set correctly)
  68. # To override autodetection (or if it just doesn't work), you can set
  69. # it to "TRUE" or "FALSE".
  70. set use_glftpd2 "FALSE"
  71.  
  72. # Are you using something other than glftpd?
  73. set ftpd_type "wzdftpd"
  74.  
  75. # Sitename is for the %sitename-cookie in announces.
  76. set sitename "YOUR SITE NAME HERE"
  77.  
  78. # Prefix on commands (f. x. !pnfree if cmdpre is !pn, !free if cmdpre is !, etc)
  79. # bindnopre does not replace the cmd pre command, it meirly adds a second
  80. # trigger option. example: you can set cmdpre to !pn but if bindnopre is set to
  81. # "TRUE" then the sitebot will respond to !pnbnc and also !bnc useful for rings.
  82. set cmdpre "!pn"
  83. set bindnopre "TRUE"
  84.  
  85. # Your sites bandwidth, used for bandwidth usage calculations (in kilobytes/s).
  86. # 100mbit full duplex
  87. set speed(INCOMING) 12500
  88. set speed(OUTGOING) 12500
  89. # 10mbit full duplex
  90. #set speed(INCOMING) 1280
  91. #set speed(OUTGOING) 1280
  92. # 4096/1024 kbit ADSL
  93. #set speed(INCOMING) 512
  94. #set speed(OUTGOING) 128
  95.  
  96. # Speed unit conversions:
  97. #
  98. # autobyte - Convert to most appropriate byte unit.
  99. # autobit - Convert to most appropriate bit unit.
  100. # kb - Convert to KB/s
  101. # mb - Convert to MB/s
  102. # kbit - Convert to Kbit/s
  103. # mbit - Convert to Mbit/s
  104. # disabled - No conversion
  105. set speedmeasure "autobyte"
  106.  
  107. # Threshold used on auto-setting, to move from on to the other. (normally is 1000 or 1024)
  108. set speedthreshold 1024
  109.  
  110. # During !idlers what is the minimum amount of seconds for a user to be shown as idle,
  111. # set to 0 to show all users who are not currently upload/downloading (may be a lot).
  112. set minidletime 15
  113.  
  114. # Default number of results to return for !new, !search, !nukes and !unnukes.
  115. set default_results 10
  116.  
  117. # Maximum number of results to return, when the -max parameter is specified.
  118. set maximum_results 25
  119.  
  120. # Required number of alphanumeric characters for the !search pattern.
  121. set search_chars 3
  122.  
  123. # Wether or not we should only care about local devices, ignoring network devices.
  124. # This speeds up !df-output, and prevents stalling of the script if NFS/smb/etc-mounts
  125. # are dead/hung.
  126. set local_devices_only "TRUE"
  127.  
  128. # Definition of hd devices, for free space. Format: "disk sections"
  129. # The 'sections' are purely for cosmetic use.
  130. # HINT: You can also use the mountpoint instead of the device name (see section ARCHIVE below).
  131. set device(0) "/dev/ad0s1f MP3"
  132. #device where you ftp data present
  133. #set device(1) "/dev/ad0s1e ISO"
  134. #set device(2) "/glftpd/site/archive ARCHIVE"
  135.  
  136. # Max length of devices before splitting to new line (note: you need to take
  137. # the rest of the announce.FREE into account) Also, it will output the total
  138. # on each line, if there are multiple lines. Set to 0 to disable.
  139. set dev_max_length 300
  140.  
  141. #############################################################
  142. # BOUNCERS #
  143. #############################################################
  144.  
  145. # Allow people to check bnc-status using !bnc. In some / many cases,
  146. # this is not needed. It will also disable check of binary(CURL).
  147. set bnc(ENABLED) "FALSE"
  148.  
  149. # Should we make a ping test too? TRUE/FALSE
  150. set bnc(PING) "TRUE"
  151.  
  152. # Connect to the FTP using AUTH TLS? TRUE/FALSE
  153. set bnc(SECURE) "TRUE"
  154.  
  155. # List of bouncers to check for the !bnc command.
  156. # Format: description:hostname:port
  157. set bnc(LIST) "Canada:bnc.host.ca:123 Germany:bnc.host.de:456 Sweden:bnc.host.se:789"
  158.  
  159. # Username and password to use for testing bncs (must exist with this box's ip added)
  160. set bnc(USER) "bncuser"
  161. set bnc(PASS) "bncpass"
  162.  
  163. # Number of seconds to wait before giving up on connecting to the BNCs (Note that SSL takes extra time)
  164. set bnc(TIMEOUT) 20
  165.  
  166. #############################################################
  167. # SECTIONS #
  168. #############################################################
  169.  
  170. # The sections we allow checking of stats on, remember that the number in
  171. # parantheses must be the same as the number of the section in glftpd config.
  172. set statsection(0) "DEFAULT"
  173. #set statsection(1) "0DAY"
  174. #set statsection(2) "ISO"
  175.  
  176. # Which one of the sections above will be used as default (by index)
  177. set statdefault "0"
  178.  
  179. # What sections are we announcing for?
  180. set sections ""
  181. #set sections "0DAY APPS GAMES MP3 MV"
  182.  
  183. # Set up paths for all the sections (wildcards).
  184. #set paths(0DAY) "/site/incoming/0day/*"
  185. #set paths(APPS) "/site/incoming/apps/*"
  186. #set paths(GAMES) "/site/incoming/games/*"
  187. #set paths(MP3) "/site/incoming/mp3/*"
  188. #set paths(MV) "/site/incoming/musicvideos/*"
  189.  
  190. # Disable certain announce types for sections (wildcards are optional).
  191. #set disabletypes(0DAY) "BAD_* HALFWAY_* NEWLEADER_* RACE_* UPDATE_*"
  192. #set disabletypes(MP3) "BAD_* UPDATE_*"
  193.  
  194. # Which channels we announce to, separate multiple channels with a single space.
  195. set mainchan "#YOUR_CHAN_HERE"
  196. #set chanlist(0DAY) $mainchan
  197. #set chanlist(APPS) $mainchan
  198. #set chanlist(GAMES) $mainchan
  199. #set chanlist(MP3) $mainchan
  200. #set chanlist(MV) $mainchan
  201. #set chanlist(TEST) $mainchan
  202. set chanlist(DEFAULT) $mainchan
  203. set chanlist(WELCOME) $mainchan
  204.  
  205. # Which channels should users be invited to (by default, users are invited
  206. # to the same channel the invite is announced in).
  207. set invite_channels $mainchan
  208.  
  209. # Private invite channels, only users matching the glFTPd-style permissions
  210. # are invited to the channel. You may only define one channel per line.
  211. #set privchannel(#NG-STAFF) "-glftpd =SiTEOPS =STAFF 1"
  212. #set privchannel(#NG-FREAKS) "=FREAKS"
  213. #set privchannel(#NG-EVIL) "!-t?st !=FRiENDS *"
  214.  
  215. #############################################################
  216. # ANNOUNCING #
  217. #############################################################
  218.  
  219. # Splits output into several lines.
  220. set splitter(CHAR) "\n"
  221.  
  222. # The path to your dZSbot theme file.
  223. set announce(THEMEFILE) "themes/default.zst"
  224.  
  225. # Announce types, "SECTION" types are path oriented (COMPLETE: /site/MP3/...),
  226. # and "REGULAR" types are regular event based announces.
  227. set msgtypes(SECTION) "PRE NEWDIR DELDIR NUKE UNNUKE WIPE WIPE-r BAD_FILE_0SIZE BAD_FILE_BITRATE BAD_FILE_CRC BAD_FILE_DISALLOWED BAD_FILE_DUPENFO BAD_FILE_GENRE BAD_FILE_NOSFV BAD_FILE_SFV BAD_FILE_WRONGDIR BAD_FILE_YEAR BAD_FILE_ZIP BAD_FILE_ZIPNFO BAD_FILE_DUPERELEASE BADBITRATE BADGENRE BADYEAR COMPLETE_AUDIO_CBR COMPLETE_AUDIO_VBR COMPLETE_OTHER COMPLETE_RAR COMPLETE_VIDEO COMPLETE_ZIP COMPLETE_STAT_RACE_AUDIO_CBR COMPLETE_STAT_RACE_AUDIO_VBR COMPLETE_STAT_RACE_OTHER COMPLETE_STAT_RACE_RAR COMPLETE_STAT_RACE_VIDEO COMPLETE_STAT_RACE_ZIP DOUBLESFV RESUMESFV HALFWAY_NORACE_AUDIO HALFWAY_NORACE_OTHER HALFWAY_NORACE_RAR HALFWAY_NORACE_VIDEO HALFWAY_NORACE_ZIP HALFWAY_RACE_AUDIO HALFWAY_RACE_OTHER HALFWAY_RACE_RAR HALFWAY_RACE_VIDEO HALFWAY_RACE_ZIP INCOMPLETE NEWLEADER_AUDIO NEWLEADER_OTHER NEWLEADER_RAR NEWLEADER_VIDEO NEWLEADER_ZIP RACE_AUDIO RACE_OTHER RACE_RAR RACE_VIDEO RACE_ZIP SFV_AUDIO SFV_OTHER SFV_RAR SFV_VIDEO UPDATE_CBR UPDATE_OTHER UPDATE_RAR UPDATE_VBR UPDATE_VIDEO UPDATE_ZIP DLTEST ULTEST SAMPLEDIR SAMPLE_AVI SAMPLE_MPEG1 SAMPLE_MPEG2 SAMPLE_QT SAMPLE_GENERAL"
  228. set msgtypes(DEFAULT) "ADDUSER GADDUSER CHGRPADD CHGRPDEL ADDIP DELIP READDED DELUSER PURGED KILLED SYSOP BADHOSTMASK BADMSGINVITE BADPASSWORD BANNEDHOST DELETED LOGIN LOGOUT IPNOTADDED KILLGHOST TAGLINE TIMEOUT DEBUG INVITE MSGINVITE REQFILLED REQUEST TURGEN WHOIS"
  229.  
  230. # Redirect events to the defined channels.
  231. #set redirect(LOGIN) "#pzs-ng #ng-staff"
  232. #set redirect(LOGOUT) "#pzs-ng #ng-staff"
  233. #set redirect(WIPE) "#ng-staff"
  234. #set redirect(WIPE-r) "#ng-staff"
  235.  
  236. # This allows you to customize your annoncements depending on the path where
  237. # the action is taking place. The string matching is done using the TCL
  238. # construct "string match -nocase", so it is case insensitive by default.
  239. # PS! This is NOT intended as a way to cutomize each section of a site. It
  240. # should work, but would require a LARGE amount of msgreplace() statements.
  241. # Remember to create an announce for your custom message in the theme file!
  242. # Format: "original message type:string to look for in path:new message type"
  243. #set msgreplace(0) "NEWDIR:*/sample:SAMPLE"
  244. #set msgreplace(1) "NEWDIR:*/cd?:NEWCD"
  245. #set msgreplace(2) "NEWDIR:*/disc?:NEWDISC"
  246. #set msgreplace(3) "NEWDIR:*/disk?:NEWDISC"
  247. #set msgreplace(4) "NEWDIR:*/subs:SUBTITLES"
  248. #set msgreplace(5) "NEWDIR:*/vobsub:SUBTITLES"
  249. #set msgreplace(6) "NEWDIR:*/cover:COVERS"
  250. #set msgreplace(7) "NEWDIR:*/covers:COVERS"
  251.  
  252. # Set to 0 to allow trigger commands in all channels bot is in,
  253. # or set to 1 if you want the triggers to only work in $mainchan
  254. set disable(TRIGINALLCHAN) 0
  255.  
  256. # Are we disabling the announce of this stuff?
  257. # If its set to 1, we wont show it.
  258.  
  259. ## Script announcements
  260. set disable(ALTWHO) 1
  261. set disable(BADMSGINVITE) 1
  262. set disable(DEFAULT) 1
  263. set disable(INVITE) 1
  264. set disable(MSGINVITE) 1
  265. set disable(WELCOME) 1
  266.  
  267. ## Login announcements
  268. set disable(LOGIN) 1
  269. set disable(LOGOUT) 1
  270. set disable(BADHOSTMASK) 1
  271. set disable(BADPASSWORD) 1
  272. set disable(BANNEDHOST) 1
  273. set disable(DELETED) 1
  274. set disable(IPNOTADDED) 1
  275. set disable(KILLGHOST) 1
  276. set disable(TAGLINE) 1
  277. set disable(TIMEOUT) 1
  278.  
  279. ## Sysop announcements
  280. set disable(ADDUSER) 1
  281. set disable(GADDUSER) 1
  282. set disable(CHGRPADD) 1
  283. set disable(CHGRPDEL) 1
  284. set disable(ADDIP) 1
  285. set disable(DELIP) 1
  286. set disable(READDED) 1
  287. set disable(DELUSER) 1
  288. set disable(PURGED) 1
  289. set disable(KILLED) 1
  290. set disable(SYSOP) 1
  291.  
  292. ## glFTPd announcements
  293. set disable(DEBUG) 1
  294. set disable(DELDIR) 0
  295. set disable(NEWDIR) 0
  296. set disable(NUKE) 0
  297. set disable(UNNUKE) 0
  298. set disable(REQFILLED) 0
  299. set disable(REQUEST) 0
  300. set disable(WIPE) 0
  301. set disable(WIPE-r) 0
  302. set disable(DLTEST) 0
  303. set disable(ULTEST) 0
  304.  
  305. ## Third party announcements
  306. set disable(PRE) 1
  307. set disable(TURGEN) 1
  308.  
  309. ## Zipscript announcements
  310. set disable(BAD_FILE_0SIZE) 1
  311. set disable(BAD_FILE_BITRATE) 1
  312. set disable(BAD_FILE_CRC) 1
  313. set disable(BAD_FILE_DISALLOWED) 1
  314. set disable(BAD_FILE_DUPENFO) 1
  315. set disable(BAD_FILE_GENRE) 1
  316. set disable(BAD_FILE_NOSFV) 1
  317. set disable(BAD_FILE_SFV) 1
  318. set disable(BAD_FILE_WRONGDIR) 1
  319. set disable(BAD_FILE_YEAR) 1
  320. set disable(BAD_FILE_ZIP) 1
  321. set disable(BAD_FILE_ZIPNFO) 1
  322. set disable(BAD_FILE_DUPERELEASE) 0
  323. set disable(BADBITRATE) 1
  324. set disable(BADGENRE) 1
  325. set disable(BADYEAR) 1
  326. set disable(COMPLETE_AUDIO_CBR) 0
  327. set disable(COMPLETE_AUDIO_VBR) 0
  328. set disable(COMPLETE_OTHER) 0
  329. set disable(COMPLETE_RAR) 0
  330. set disable(COMPLETE_VIDEO) 1
  331. set disable(COMPLETE_ZIP) 0
  332. set disable(COMPLETE_STAT_RACE_AUDIO_CBR) 0
  333. set disable(COMPLETE_STAT_RACE_AUDIO_VBR) 0
  334. set disable(COMPLETE_STAT_RACE_OTHER) 0
  335. set disable(COMPLETE_STAT_RACE_RAR) 0
  336. set disable(COMPLETE_STAT_RACE_VIDEO) 1
  337. set disable(COMPLETE_STAT_RACE_ZIP) 0
  338. set disable(DOUBLESFV) 0
  339. set disable(RESUMESFV) 0
  340. set disable(HALFWAY_NORACE_AUDIO) 0
  341. set disable(HALFWAY_NORACE_OTHER) 0
  342. set disable(HALFWAY_NORACE_RAR) 0
  343. set disable(HALFWAY_NORACE_VIDEO) 1
  344. set disable(HALFWAY_NORACE_ZIP) 0
  345. set disable(HALFWAY_RACE_AUDIO) 0
  346. set disable(HALFWAY_RACE_OTHER) 0
  347. set disable(HALFWAY_RACE_RAR) 0
  348. set disable(HALFWAY_RACE_VIDEO) 1
  349. set disable(HALFWAY_RACE_ZIP) 0
  350. set disable(INCOMPLETE) 0
  351. set disable(NEWLEADER_AUDIO) 1
  352. set disable(NEWLEADER_OTHER) 1
  353. set disable(NEWLEADER_RAR) 1
  354. set disable(NEWLEADER_VIDEO) 1
  355. set disable(NEWLEADER_ZIP) 1
  356. set disable(RACE_AUDIO) 0
  357. set disable(RACE_OTHER) 0
  358. set disable(RACE_RAR) 0
  359. set disable(RACE_VIDEO) 1
  360. set disable(RACE_ZIP) 0
  361. set disable(SFV_AUDIO) 0
  362. set disable(SFV_OTHER) 0
  363. set disable(SFV_RAR) 0
  364. set disable(SFV_VIDEO) 1
  365. set disable(UPDATE_CBR) 0
  366. set disable(UPDATE_OTHER) 0
  367. set disable(UPDATE_RAR) 0
  368. set disable(UPDATE_VBR) 0
  369. set disable(UPDATE_VIDEO) 1
  370. set disable(UPDATE_ZIP) 0
  371. set disable(SAMPLEDIR) 1
  372. set disable(SAMPLE_AVI) 1
  373. set disable(SAMPLE_MPEG1) 1
  374. set disable(SAMPLE_MPEG2) 1
  375. set disable(SAMPLE_QT) 1
  376. set disable(SAMPLE_GENERAL) 1
  377.  
  378. #########################################################
  379. # ADVANCED CONFIG, EDIT CAREFULLY #
  380. #########################################################
  381.  
  382. # Space separated list of wildcards that we match against
  383. # paths to see if we announce it or not.
  384. # REMEMBER: This is CaSe SeNsItIvE.
  385. set denypost "/DIR_WHERE_FTP_DATA_PRESENT/WANT_SKIP_IN_ANNONCE1/* /DIR_WHERE_FTP_DATA_PRESENT/WANT_SKIP_IN_ANNONCE2/*"
  386.  
  387. # Do not show these users if they get nuked (multiple entries allowed)
  388. set hidenuke "UNKNOWN"
  389.  
  390. if you want add something in Script announcements pls change 1 to 0
  391.  
  392. after edit dZSbot.conf go to themes, select theme you like. By default its default.zst.
  393.  
  394. Hope all will work
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement