MEWBIES@:  Facebook  Twitter  G+  YouTube  DeviantArt  Forum  Wall
 SHARE:
    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
   ██                                                                       ██
  █▌           -   PZS-NG : PROJECT ZIPSCRIPT - NEXT GENERATION   -          █▌
 █▌                              r2500-v1.2.0                                 █▌
 █                                                                            ▐▌
 █                               <->      <=>                                 ▐▌
 █                                <=>    <->                                  ▐▌
 █                                 <->  <=>                                   ▐▌
 █                                  <=><->                                    ▐▌
 █                                  <-><=>                                    ▐▌
 █                                   ;--;                                     ▐▌
 █                                   |  |                                     ▐▌
 █                                   |  |                                     ▐▌
 █                                   |ZS|                                     ▐▌
 █                                   \__/                                     ▐▌
 █                                   <=->                                     ▐▌
 █                                   <-=>                                     ▐▌
 █                                   <=->                                     ▐▌
 █                                   <-=>                                     ▐▌
 █                                   <=->                                     ▐▌
 █                                   <-=>                                     ▐▌
 █                               jgs <=->                                     ▐▌
 █                                   <-=>                                     ▐▌
 █                                                                            ▐▌
 █ pzs-ng (Project Zipscript - Next Generation) is a real-time CRC add-on,    ▐▌
 █ and much more including a sitebot. It is packed full of options made       ▐▌
 █ specifically for glFTPd, but it also works standalone. Every glFTPd should ▐▌
 █ have this :).                                                              ▐▌
 █                                                                            ▐▌
 █ pzs-ng mirrors: cl de it uk us1                                            ▐▌
 █ Bug tracking and to check for any updated files for the package here.      ▐▌
 █ On GitHub here. Check for the latest stable version here.                  ▐▌
 █                                                                            ▐▌
 █ HUGE THANK YOU to the generous talented always helpful peeps in #pzs-ng on ▐▌
 █ EFnet (IRC) - Search all the enclosed docs and Google it first for         ▐▌
 █ a solution to your problem(s) before asking in the channel!                ▐▌
 █                                                                            ▐▌
 █                                                                            ▐▌
 █ PREREQUISITES                                                              ▐▌
 █ PZS-NG INSTALL NOTES                                                       ▐▌
 █ INSTALL PZS-NG                                                             ▐▌
 █ PZS-NG SITE MIRROR                                                         ▐▌
 █                                                                            ▐▌
 █ SITEBOT                                                                    ▐▌
 █   !BNC CMD                                                                 ▐▌
 █   JAIL ENVIRONMENT                                                         ▐▌
 █   EDIT DZSBOT.CONF                                                         ▐▌
 █   EDITING DZSBOT.CONF NOTES                                                ▐▌
 █   SITEBOT NOTES                                                            ▐▌
 █                                                                            ▐▌
 █ INSTALLING EXTRA SCRIPTS INCLUDED                                          ▐▌
 █ PLUGINS                                                                    ▐▌
 █ THEMES                                                                     ▐▌
 █ ALTER INVITE OUTPUT                                                        ▐▌
 █ OUTPUT RAR COMPRESSION TO BOT'S ANNOUNCE                                   ▐▌
 █ AUTO NUKE IF RAR COMPRESSION IS TOO LOW                                    ▐▌
 █ OTHER SCRIPTS                                                              ▐▌
 █ ALTER CHANNEL COMMANDS' OUTPUT                                             ▐▌
 █ STOP CREATION OF THE .MESSAGE FILE                                         ▐▌
 █                                                                            ▐▌
 █                          ___________..___________                          ▐▌
 █                                                                            ▐▌
 █ PREREQUISITES:                                                             ▐▌
 █ ``````````````                                                             ▐▌
 █ su                                                                         ▐▌
 █ apt-get install cURL libssl-dev                                            ▐▌
 █ also tcl8.4 or newer:                                                      ▐▌
 █ apt-get install tcl8.4 tcl8.4-dev                                          ▐▌
 █ exit                                                                       ▐▌
 █ And a bot/eggdrop in your channel(s). If you don't know how to set one     ▐▌
 █ up (it's easy) read my eggdrop tutorial HERE.                              ▐▌
 █ And create a channel for site admins only if you like - as script can also ▐▌
 █ make announcements for admins; not suitable for all users to view.         ▐▌
 █                                                                            ▐▌
 █                          ___________..___________                          ▐▌
 █                                                                            ▐▌
 █ PZS-NG INSTALL NOTES:                                                      ▐▌
 █ `````````````````````                                                      ▐▌
 █ Just some notes for you to skim over first and refer back to when needed.  ▐▌
 █                                                                            ▐▌
 █ 1. DOCS:                                                                   ▐▌
 █ Read the enclosed docs, it will cover everything. If you are installing    ▐▌
 █ this remotely then download it to your own box so you can easily access    ▐▌
 █ the docs and files.                                                        ▐▌
 █                                                                            ▐▌
 █ I have found that two of the enclosed docs have answered most of the       ▐▌
 █ questions asked here. So I've included a link to them -                    ▐▌
 █ 'README.ZSCONFIG.txt' HERE and                                             ▐▌
 █ 'dZSbot.conf.defaults' (in sitebot directory) HERE.                        ▐▌
 █                                                                            ▐▌
 █ 2. DISTCLEAN:                                                              ▐▌
 █ If you receive errors during install and want to start over, do in         ▐▌
 █ project-zs-ng_r2500-v1.2.0's directory:                                    ▐▌
 █ cd ~/project-zs-ng_r2500-v1.2.0/                                           ▐▌
 █ make distclean                                                             ▐▌
 █ Then configure again                                                       ▐▌
 █                                                                            ▐▌
 █ 3. ZSCONFIG.H                                                              ▐▌
 █ a. zsconfig.h is the heart of the script. Zipscript crc checking options   ▐▌
 █ is controlled by zsconfig.h: ~/project-zs-ng_r2500-v1.2.0/zipscript/conf/  ▐▌
 █                                                                            ▐▌
 █ b. Any changes to zsconfig.h are to be done here:                          ▐▌
 █ pico ~/project-zs-ng_r2500-v1.2.0/zipscript/conf/zsconfig.h                ▐▌
 █ So be sure you keep that file (do not place it in a location that will get ▐▌
 █ removed e.g. /tmp/)                                                        ▐▌
 █                                                                            ▐▌
 █ c. Any changes to 'zsconfig.h' to take affect will require you to          ▐▌
 █ recompile:                                                                 ▐▌
 █ cd ~/project-zs-ng_r2500-v1.2.0/                                           ▐▌
 █ su                                                                         ▐▌
 █ make                                                                       ▐▌
 █ make install                                                               ▐▌
 █ You don't need to re-do the rest of the steps, but you can, it doesn't     ▐▌
 █ hurt.                                                                      ▐▌
 █                                                                            ▐▌
 █ 4. DZSBOT.* FILES:                                                         ▐▌
 █ a. Are only for the output to IRC and a few interactive commands.          ▐▌
 █                                                                            ▐▌
 █ b. Any changes to dZSbot.conf you'll need to *.rehash your bot.            ▐▌
 █                                                                            ▐▌
 █ c. Changes to dZSbot.conf are to be done here:                             ▐▌
 █ pico ~/YourBot/pzs-ng/dZSbot.conf                                          ▐▌
 █                                                                            ▐▌
 █ d. *'.rehash your bot' If you aren't sure how to do this see my tutorial   ▐▌
 █ 'EGGDROP' HERE under the section 'SETUP TELNET TO BOT:' then once logged   ▐▌
 █ in to the bot issue the cmd: .rehash                                       ▐▌
 █                                                                            ▐▌
 █                          ___________..___________                          ▐▌
 █                                                                            ▐▌
 █ INSTALL PZS-NG:                                                            ▐▌
 █ ```````````````                                                            ▐▌
 █ Though this tutorial was done using project-zs-ng_r2500-v1.2.0.tar.gz;     ▐▌
 █ always check first and use the latest Stable version or if brave the       ▐▌
 █ latest Testing version. The steps will be the same.                        ▐▌
 █ wget http://cl.pzs-ng.com/stable/project-zs-ng_r2500-v1.2.0.tar.gz         ▐▌
 █ Or you can find it on GitHub here with various fixes included.             ▐▌
 █ tar -xzf project-zs-ng_r2500-v1.2.0.tar.gz                                 ▐▌
 █ cat ~/project-zs-ng_r2500-v1.2.0/INSTALL                                   ▐▌
 █ Follow the easy instructions. This is what I did:                          ▐▌
 █ cd project-zs-ng_r2500-v1.2.0                                              ▐▌
 █ su                                                                         ▐▌
 █ ./configure --with-install-path=/jail/glftpd                               ▐▌
 █                                                                            ▐▌
 █ You might see similar in replies, no worry, just messages:                 ▐▌
 █ checking hsregex.h usability... no                                         ▐▌
 █ checking hsregex.h presence... no                                          ▐▌
 █ checking for hsregex.h... no                                               ▐▌
 █ checking for strlcpy... no                                                 ▐▌
 █                                                                            ▐▌
 █ Also *Symlink lib errors that are just messages.                           ▐▌
 █ exit                                                                       ▐▌
 █                                                                            ▐▌
 █ That will create 'zsconfig.h'                                              ▐▌
 █ cat ~/project-zs-ng_r2500-v1.2.0/README.ZSCONFIG                           ▐▌
 █                                                                            ▐▌
 █ Edit zsconfig.h:                                                           ▐▌
 █ pico ~/project-zs-ng_r2500-v1.2.0/zipscript/conf/zsconfig.h                ▐▌
 █ I have put mine HERE as a reference only.                                  ▐▌
 █ From there you can see the changes I have made. You can make more changes  ▐▌
 █ to do what you need. Few notes and settings I added and or changed:        ▐▌
 █ #define allow_file_resume   TRUE                                           ▐▌
 █ #define combine_path TRUE                                                  ▐▌
 █ #define enable_nfo_script            TRUE                                  ▐▌
 █ #define nfo_script                   "/bin/psxc-imdb.sh"                   ▐▌
 █ #define enable_complete_script       TRUE                                  ▐▌
 █ #define complete_script              "/bin/nfoextract.sh"                  ▐▌
 █                                                                            ▐▌
 █ Done editing it then:                                                      ▐▌
 █ cd ~/project-zs-ng_r2500-v1.2.0/                                           ▐▌
 █ su                                                                         ▐▌
 █ make                                                                       ▐▌
 █ make install                                                               ▐▌
 █                                                                            ▐▌
 █ Once that is done make sure you have all the needed 'libs' by running this ▐▌
 █ script:                                                                    ▐▌
 █ cd /home/user/project-zs-ng_r2500-v1.2.0/scripts/libcopy/                  ▐▌
 █ ./libcopy.sh /jail/glftpd/                                                 ▐▌
 █ Not to worry if you see messages similar to this:                          ▐▌
 █ Configuring the shared library cache . . . /bin/ldconfig:                  ▐▌
 █ /lib/libncurses.so.5 is not a symbolic link                                ▐▌
 █                                                                            ▐▌
 █ Now to add the needed lines to glftpd:                                     ▐▌
 █ pico /jail/glftpd/etc/glftpd.conf                                          ▐▌
 █ Add the following lines to glftpd.config:                                  ▐▌
 █ calc_crc         *                                                         ▐▌
 █ post_check       /bin/zipscript-c *                                        ▐▌
 █ cscript          SITE[:space:]NUKE   post   /bin/cleanup                   ▐▌
 █ cscript          SITE[:space:]UNNUKE	post   /bin/postunnuke                ▐▌
 █ cscript          SITE[:space:]WIPE   post   /bin/cleanup                   ▐▌
 █ site_cmd    RESCAN            EXEC /bin/rescan                             ▐▌
 █ custom-rescan      !8   *                                                  ▐▌
 █ cscript     RETR              post /bin/dl_speedtest                       ▐▌
 █ site_cmd    AUDIOSORT         EXEC	/bin/audiosort                        ▐▌
 █ custom-audiosort  !8     *                                                 ▐▌
 █                                                                            ▐▌
 █ Done with that, then:                                                      ▐▌
 █ chmod 666 /jail/glftpd/ftp-data/logs/dupelog                               ▐▌
 █                                                                            ▐▌
 █                          ___________..___________                          ▐▌
 █                                                                            ▐▌
 █ PZS-NG SITE MIRROR:                                                        ▐▌
 █ ```````````````````                                                        ▐▌
 █ pzs-ng keeps a mirror of every directory ever uploaded to your server with ▐▌
 █ the stats in each directory.                                               ▐▌
 █ Take a look here, and its sub directories:                                 ▐▌
 █ ls -al /jail/glftpd/ftp-data/pzs-ng/site/ | less                           ▐▌
 █ Or view it recursively-use Ctrl+c + q to stop the listing:                 ▐▌
 █ ls -alR /jail/glftpd/ftp-data/pzs-ng/site/ | less                          ▐▌
 █                                                                            ▐▌
 █ Included with pzs-ng is a binary 'datacleaner' to remove the mirror        ▐▌
 █ directories and its stats that are no longer found on the server. View     ▐▌
 █ pzs-ng's README or README.datacleaner for more information.                ▐▌
 █ To use datacleaner you can add this to your crontab to run daily. It needs ▐▌
 █ to run in each section of the site.                                        ▐▌
 █ If aren't root still: su                                                   ▐▌
 █ Find the location of your chroot:                                          ▐▌
 █ which chroot                                                               ▐▌
 █ crontab -e                                                                 ▐▌
 █ For example, paste this in, changing the paths & sections to your own:     ▐▌
59 23  * * *     /usr/sbin/chroot /jail/glftpd /bin/datacleaner /site/ZIPS >/dev/null 2>&1
59 23  * * *     /usr/sbin/chroot /jail/glftpd /bin/datacleaner /site/SFV >/dev/null 2>&1
█ Output will be: ▐▌ █ crontab: installing new crontab ▐▌ █ ▐▌ █ The '>/dev/null 2>&1' part of those lines are to not e-mail you about its ▐▌ █ actions- remove that part to if you need to trouble shoot. ▐▌ █ ▐▌ █ To test this manually: ▐▌ █ chroot /jail/glftpd /bin/datacleaner /site/ZIPS ▐▌ █ chroot /jail/glftpd /bin/datacleaner /site/SFV ▐▌ █ ▐▌ █ ___________..___________ ▐▌ █ ▐▌ █ SITEBOT: ▐▌ █ ```````` ▐▌ █ cat /home/project-zs-ng_r2500-v1.2.0/sitebot/README ▐▌ █ This is what I did: ▐▌ █ ▐▌ █ !BNC CMD: ▐▌ █ If you are using the !bnc feature you need to create a glFTPd account for ▐▌ █ your bot to login to test if x bnc is working, using the server's IP as ▐▌ █ its IP. We'll add it to the dZSbot.conf further down. For example ▐▌ █ 74.125.45.100 would be the server's IP: ▐▌ █ site adduser testbnc PaSs-w0Rd *@74.125.45.100 ▐▌ █ ▐▌ █ JAIL ENVIRONMENT: ▐▌ █ If aren't root still: su ▐▌ █ If you have glftpd in a /jail/ environment you will to add the bot owner ▐▌ █ to the jail group so that bot can access the files in jail. First to see ▐▌ █ which group owns jail: ▐▌ █ ls -l / | grep jail | cut -d ' ' -f 5 ▐▌ █ For example let's say it replied: mew ▐▌ █ Then: ▐▌ █ pico /etc/group ▐▌ █ find group mew, mine is: mew:x:108: ▐▌ █ Then add the bot owner/user (the bot owner for example: ▐▌ █ /home/mewbie/MyBot/ would be mewbie) to the group like this: ▐▌ █ mew:x:108:mewbie ▐▌ █ (If you want other users to have access then it would be separated by a ▐▌ █ comma, no space: mew:x:108:mewbie,doggie,whomever) ▐▌ █ To view who's in a group, for example mew: grep ^mew /etc/group ▐▌ █ exit ▐▌ █ ▐▌ █ EDIT DZSBOT.CONF: ▐▌ █ As the README states: ▐▌ █ mkdir -p ~/YourBot/pzs-ng/themes ▐▌ █ cd ~/project-zs-ng_r2500-v1.2.0/sitebot ▐▌ █ cp -R dZSbot.* plugins themes ~/YourBot/pzs-ng/ ▐▌ █ cp dZSbot.conf.dist ~/YourBot/pzs-ng/dZSbot.conf ▐▌ █ ▐▌ █ pico ~/YourBot/pzs-ng/dZSbot.conf ▐▌ █ I have put my 'dZSbot.conf' HERE as a reference only - use the enclosed ▐▌ █ 'dZSbot.conf.defaults' for each explained. ▐▌ █ ▐▌ █ EDITING DZSBOT.CONF NOTES: ▐▌ █ 1. '# Bins, Logs & Paths'| CURL: ▐▌ █ To view the install path of cURL: ▐▌ █ which curl ▐▌ █ my reply is: /usr/bin/curl , so I'll change this: ▐▌ █ set binary(CURL) "/usr/local/bin/curl" ▐▌ █ To: ▐▌ █ set binary(CURL) "/usr/bin/curl" ▐▌ █ ▐▌ █ 2. '# Misc. Settings' | DEVICE NAME: ▐▌ █ For the cmd !free to work properly you need to put your device name in the ▐▌ █ config. ▐▌ █ Under # Misc. Settings you'll see I have: ▐▌ █ set device(0) "/dev/hda3 ZIPS/SFV/M3U/incoming/MEW" ▐▌ █ ▐▌ █ The 'set device(0) "/dev/hda3' ▐▌ █ To find out your device name to use: ▐▌ █ df ▐▌ █ reply will be similar to: ▐▌ █ Filesystem 1K-blocks Used Available Use% Mounted on ▐▌ █ /dev/hda3 35869332 1815512 32202332 6% / ▐▌ █ tmpfs 250360 0 250360 0% /lib/init/rw ▐▌ █ udev 10240 32 10208 1% /dev ▐▌ █ tmpfs 250360 0 250360 0% /dev/shm ▐▌ █ /dev/hda1 93309 29341 59151 34% /boot ▐▌ █ ▐▌ █ Then for myself I will use the largest one for all sections, 1st listed, ▐▌ █ and then added it to 'dZSbot.conf' as you see above. ▐▌ █ Has this: ▐▌ █ set device(0) "/dev/da0s1f MP3" ▐▌ █ set device(1) "/dev/ad0s1e ISO" ▐▌ █ set local_devices_only "TRUE" ▐▌ █ ▐▌ █ Changed to: ▐▌ █ set device(0) "/dev/hda3 ZIPS/SFV/M3U/incoming/MEW" ▐▌ █ set local_devices_only "TRUE" ▐▌ █ ▐▌ █ 3. '# Bouncers' ▐▌ █ This is the section where we'll add the new user created for testing the ▐▌ █ !bnc cmd, replacing settings with its user name and password: ▐▌ █ # Username and password to use for testing bncs (must exist with this ▐▌ █ box's ip added) ▐▌ █ set bnc(USER) "bncuser" ▐▌ █ set bnc(PASS) "bncpass" ▐▌ █ ▐▌ █ as example above we would change this to: ▐▌ █ set bnc(USER) "testbnc" ▐▌ █ set bnc(PASS) "PaSs-w0Rd" ▐▌ █ ▐▌ █ Once you are done editing dZSbot.conf, add the tcl to your bots config: ▐▌ █ pico ~/yourbot/yourbot.conf ▐▌ █ add this line to your bot's script section at the bottom with the others: ▐▌ █ source pzs-ng/dZSbot.tcl ▐▌ █ ▐▌ █ Restart your bot (telnet to bot): ▐▌ █ .rehash ▐▌ █ Leave bot's shell window open while testing the various cmds in your ▐▌ █ channel. Keep an eye out for your bot reporting any errors in its shell ▐▌ █ window. ▐▌ █ ▐▌ █ 4. '## Staff channel announces' ▐▌ █ Optional: You'll see on my dZSbot.conf I have extra settings after the ▐▌ █ line: ▐▌ █ set redirect(WHOIS) $staffchan ▐▌ █ Some of the themes, such as vampire, have settings in them that aren't ▐▌ █ listed by default on dZSbot.conf. You'll see your in bot's shell the bot ▐▌ █ notifying you about it. Read my 'THEMES' section below for more ▐▌ █ explanation. ▐▌ █ ▐▌ █ SITEBOT NOTES: ▐▌ █ 1. If you changed the theme your bot is using and upon rehashing the bot ▐▌ █ you see warnings similar to these: ▐▌ █ dZSbot: Loading theme "pzs-ng/themes/vampire.zst". ▐▌ █ dZSbot warning: Missing announce setting "announce.SAMPLEDIR" in the theme ▐▌ █ file. ▐▌ █ dZSbot warning: Missing announce setting "announce.SAMPLE_MPEG1" in the ▐▌ █ theme file. ▐▌ █ etc... ▐▌ █ Not to worry as that just means that the theme you have selected isn't ▐▌ █ using those settings. ▐▌ █ See below under the 'THEMES' sections in this tut for more info. ▐▌ █ ▐▌ █ 2. If you have announce problems in sections be sure that all 3 file's ▐▌ █ sections matchup: ▐▌ █ pico ~/project-zs-ng_r2500-v1.2.0/zipscript/conf/zsconfig.h ▐▌ █ Don't forget you need to recompile here: ▐▌ █ cd ~/project-zs-ng_r2500-v1.2.0/ ▐▌ █ make ▐▌ █ su ▐▌ █ make install ▐▌ █ exit ▐▌ █ pico ~/Bot/pzs-ng/dZSbot.conf ▐▌ █ .rehash bot ▐▌ █ su ▐▌ █ pico /jail/glftpd/etc/glftpd.conf ▐▌ █ ▐▌ █ 3. If a file and or directory is a dupe, regardless of it being of the ▐▌ █ site or not, the full announce doesn't work properly unless you undupe the ▐▌ █ file/s. ▐▌ █ ▐▌ █ ___________..___________ ▐▌ █ ▐▌ █ INSTALLING EXTRA SCRIPTS INCLUDED: ▐▌ █ `````````````````````````````````` ▐▌ █ The extra scripts included are not copied by default: ▐▌ █ fakelog.sh simulate log entries ▐▌ █ incomplete-list.sh !inc reports incompletes in channel ▐▌ █ invite.sh via site invite to channel ▐▌ █ ng-topic.sh via site change channel topic ▐▌ █ top.tcl announces top users in channel ▐▌ █ ▐▌ █ These are very easy to install/enable. Scripts will either have their ▐▌ █ instructions on them or a doc included with it. ▐▌ █ If you want to use the extra scripts: ▐▌ █ cat ~/project-zs-ng_r2500-v1.2.0/sitebot/README ▐▌ █ ▐▌
su
cp /home/user/project-zs-ng_r2500-v1.2.0/sitebot/extra/*.sh /jail/glftpd/bin
cp /home/user/project-zs-ng_r2500-v1.2.0/sitebot/extra/top.tcl /home/user/yourbot/scripts
█ Then read the instructions in each script and edit accordingly. ▐▌ █ ▐▌ █ Examples: ▐▌ █ 1. incomplete-list.sh: ▐▌ █ pico /jail/glftpd/bin/incomplete-list.sh ▐▌ █ Edit it to the correct path: glroot=/jail/glftpd ▐▌ █ after: ▐▌ █ chmod 755 /jail/glftpd/bin/incomplete-list.sh ▐▌ █ ▐▌ █ Done. ▐▌ █ ▐▌ █ 2. invite.sh ▐▌ █ Some scripts will require that you 'also' add them to gltfd.conf. ▐▌ █ invite.sh for example will be executed by glftpd - not the ▐▌ █ sitebot/eggdrop. Bots only announce it - in the style set out by the ▐▌ █ 'theme' used. ▐▌ █ pico /jail/glftpd/etc/glftpd.conf ▐▌ █ Add the following to glftpd.conf: ▐▌ █ site_cmd INVITE EXEC /bin/invite.sh ▐▌ █ custom-invite !8 * ▐▌ █ ▐▌ █ pico /jail/glftpd/bin/invite.sh ▐▌ █ chmod 755 /jail/glftpd/bin/invite.sh ▐▌ █ ▐▌ █ Done. ▐▌ █ For details how to update 'rescan' and usage of total-rescan view HERE. ▐▌ █ ▐▌ █ ___________..___________ ▐▌ █ ▐▌ █ PLUGINS: ▐▌ █ ```````` ▐▌ █ cat /project-zs-ng_r2500-v1.2.0/sitebot/plugins/README ▐▌ █ Plugins are located here: /home/user/yourbot/pzs-ng/plugins/ ▐▌ █ These basically are installed like any tcl, each have instructions as how ▐▌ █ to use in their tcl file. ▐▌ █ AutoOp.tcl ▐▌ █ Blow.tcl ▐▌ █ DeluserBan.tcl ▐▌ █ GameFAQs.tcl ▐▌ █ NickDb.tcl ▐▌ █ PreTime.tcl ▐▌ █ TVRage.tcl ▐▌ █ ▐▌ █ NOTES: ▐▌ █ 1. 'Blow.tcl' is for bot encryption. I would recommend for better security ▐▌ █ and more features to use 'McEggDrop'. You can read how to install it on my ▐▌ █ tutorial HERE. ▐▌ █ ▐▌ █ 2. Required for PreTime.tcl is: ▐▌ █ aptitude install mysql mysqltcl ▐▌ █ exit ▐▌ █ ▐▌ █ ___________..___________ ▐▌ █ ▐▌ █ THEMES: ▐▌ █ ``````` ▐▌ █ cat ~/project-zs-ng_r2500-v1.2.0/sitebot/README ▐▌ █ "To install a theme - all you need to do is edit dZSbot.conf and change a ▐▌ █ line: ▐▌ █ set announce(THEMEFILE) "yourtheme.zst" " ▐▌ █ ▐▌ █ This what I did: ▐▌ █ pico /path/to/eggdrop/pzs-ng/dZSbot.conf ▐▌ █ Changed my theme to vampire: ▐▌ █ set announce(THEMEFILE) "vampire.zst" ▐▌ █ Then telnet to bot: ▐▌ █ .rehash ▐▌ █ ▐▌ █ You will then see when certain site events take place your bot ▐▌ █ complaining, for example: ▐▌ █ dZSbot debug: Received event: LOGOUT (log: 1). ▐▌ █ dZSbot debug: Announce skipped, "LOGOUT" is disabled. ▐▌ █ ▐▌ █ Not to worry - this is only because vampire theme is set to announce other ▐▌ █ events that are not listed on dZSbot.conf. ▐▌ █ To view what a theme is set to announce, for example vampire, take a look ▐▌ █ at it: ▐▌ █ cat ~/yourbot/pzs-ng/themes/vampire.zst | less ▐▌ █ You'll find events like this (and more) that aren't on dZSbot.conf: ▐▌ █ announce.LOGIN ▐▌ █ announce.LOGOUT ▐▌ █ announce.KILLGHOST ▐▌ █ announce.TAGLINE ▐▌ █ announce.TIMEOUT ▐▌ █ ▐▌ █ So then I add these events and to dZSbot.conf: ▐▌ █ pico ~/YourBot/pzs-ng/dZSbot.conf ▐▌ █ In the '## Staff channel announces' I add these lines: ▐▌ █ set disable(LOGIN) 0 ▐▌ █ set disable(LOGOUT) 0 ▐▌ █ set disable(KILLGHOST) 0 ▐▌ █ set disable(TAGLINE) 0 ▐▌ █ set disable(TIMEOUT) 0 ▐▌ █ ▐▌ █ set redirect(LOGIN) $staffchan ▐▌ █ set redirect(LOGOUT) $staffchan ▐▌ █ set redirect(KILLGHOST) $staffchan ▐▌ █ set redirect(TAGLINE) $staffchan ▐▌ █ set redirect(TIMEOUT) $staffchan ▐▌ █ ▐▌ █ Then telnet to bot: ▐▌ █ .rehash ▐▌ █ If you do not want the bot to announce each time a user FXP from server ▐▌ █ e.g.: Doggie attempting download to a foreign address 12.345.6.789 ▐▌ █ then you need to remove that in your glftpd.conf ▐▌ █ pico /jail/glftpd/etc/glftpd.conf ▐▌ █ change your FXP line from: ▐▌ █ allow_fxp yes yes yes * ▐▌ █ to: ▐▌ █ allow_fxp yes yes no * ▐▌ █ ▐▌ █ Note that this will also prevent it from logging those IP transfers. ▐▌ █ ▐▌ █ ___________..___________ ▐▌ █ ▐▌ █ ALTER INVITE OUTPUT: ▐▌ █ ```````````````````` ▐▌ █ If a user invites them self to a channel via site cmd it will appear in ▐▌ █ the channel for example: ▐▌ █ iNViTE: sally / MEW invited himself as sally. ▐▌ █ Anything bother you? Does me :) so let's fix it: ▐▌ █ ▐▌ █ pico ~/YourBot/pzs-ng/themes/vampire.zst ▐▌ █ ▐▌ █ Do a search (CTRL+w) for himself, 3 instances of it, and replace it with ▐▌ █ what you would like, e.g. them self, or be more creative. ▐▌ █ For example: ▐▌ █ ${) tried to invite them self with invalid login!} ▐▌ █ {invited them self as} ▐▌ █ {invited them self as} ▐▌ █ ▐▌ █ Then telnet to bot: ▐▌ █ .rehash ▐▌ █ ▐▌ █ ___________..___________ ▐▌ █ ▐▌ █ OUTPUT RAR COMPRESSION TO BOT'S ANNOUNCE: ▐▌ █ ````````````````````````````````````````` ▐▌ █ If you want the compression ratio of a rar file included in the announcing ▐▌ █ of rar files, you'll need to edit the theme file the bot is using. For ▐▌ █ example 'vampire.zst' ▐▌ █ pico ~/yourbot/pzs-ng/themes/vampire.zst ▐▌ █ Add this line: Packaging method is m%c3{%compression}%c1{.} ▐▌ █ to the end of the line that starts with 'announce.UPDATE_RAR'. ▐▌ █ For example: ▐▌ █ announce.UPDATE_RAR [SNIP] }}%c1{MB.} Packaging method is m%c3{%compression}%c1{.}" █ ▐▌ █ Then telnet to bot: ▐▌ █ .rehash ▐▌ █ ▐▌ █ Notes: ▐▌ █ 1. I found it doesn't work if it's only 1 rar file. ▐▌ █ 2. Also if the same rar names have been uploaded before entire announce is ▐▌ █ cut short to NEW only. ▐▌ █ ▐▌ █ ___________..___________ ▐▌ █ ▐▌ █ AUTO NUKE IF RAR COMPRESSION IS TOO LOW: ▐▌ █ ``````````````````````````````````````` ▐▌ █ I haven't needed this but here are my notes to get you started: ▐▌ █ 1. Write a simple bash script to do it ▐▌ █ 2. Use the /jail/glftpd/bin/nuke command to nuke a release: ▐▌ █ rarinfo: check compression ▐▌ █ if compression > 3 : continue ▐▌ █ if <3 : run nuke command ▐▌ █ ▐▌ █ ___________..___________ ▐▌ █ ▐▌ █ OTHER SCRIPTS: ▐▌ █ `````````````` ▐▌ █ cat /project-zs-ng_r2500-v1.2.0/README.sitewho ▐▌ █ I didn't need to anything, worked fine. ▐▌ █ Will be here: /jail/glftpd/bin/sitewho.conf ▐▌ █ ▐▌ █ cat /project-zs-ng_r2500-v1.2.0/README.datacleaner ▐▌ █ Already added this to crontab earlier. ▐▌ █ ▐▌ █ cat /project-zs-ng_r2500-v1.2.0/README.mp3-genres ▐▌ █ This is a list of MP3 genres you can use. ▐▌ █ ▐▌ █ ___________..___________ ▐▌ █ ▐▌ █ ALTER CHANNEL COMMANDS' OUTPUT: ▐▌ █ ``````````````````````````````` ▐▌ █ To change whether a bot's output is in the channel or it is a query, you ▐▌ █ would make the changes in dZSbot.tcl. Then after .rehash your bot, or if ▐▌ █ the changes still didn't take, .restart your bot. Examples: ▐▌ █ ▐▌ █ 1. !bnc - If you want the output of !bnc to be in the channel and not to a ▐▌ █ query you would change $nick to $chan - ▐▌ █ Search for 'bnc' to find its 'ng_name' . In this case it is 'ng_bnc' ▐▌ █ Then search for the 'ng_bnc' section. It begins here: ▐▌ █ proc ng_bnc {nick uhost hand chan arg} { ▐▌ █ [snip] ▐▌ █ sndone $nick [replacebasic $output "BNC"] ▐▌ █ ▐▌ █ Change this to: ▐▌ █ sndone $chan [replacebasic $output "BNC"] ▐▌ █ ▐▌ █ 2. !alldn - is listed under 'ng_stats' with many others such as !gpad ▐▌ █ I don't know how to change some of those !cmds to announce in the channel ▐▌ █ while others query user, but to change all to reply in the channel: ▐▌ █ Search for ng_stats section, which begins here: ▐▌ █ proc ng_stats {type time nick uhost hand chan argv} ▐▌ █ ▐▌ █ Replace in these 3 lines below it, to state $chan instead of $nick: ▐▌ █ puthelp "PRIVMSG $nick :Invalid section, sections: [join [lsort -ascii ▐▌ █ $sections] ▐▌ █ puthelp "PRIVMSG $nick :$line\003$newline($line)" ▐▌ █ puthelp "PRIVMSG $nick ▐▌ █ ▐▌ █ So they would all begin with: ▐▌ █ puthelp "PRIVMSG $chan ▐▌ █ ▐▌ █ Thx to Illo for pointing out that in v r2532 you would make these changes ▐▌ █ to 'glftpd.tcl (in the modules dir) by changing the 3 lines named ▐▌ █ 'cmd_stats' ▐▌ █ ▐▌ █ 3. !help ▐▌ █ checkchan $nick $chan ▐▌ █ [snip] ▐▌ █ puthelp "PRIVMSG $nick :$line\003$newline($line)" ▐▌ █ ▐▌ █ Change to announce in channel would be: ▐▌ █ puthelp "PRIVMSG $chan :$line\003$newline($line)" ▐▌ █ ▐▌ █ etc... ▐▌ █ ▐▌ █ 4. If for example you would like the creation of a New Directory announced ▐▌ █ in the staff channel also, in your 'dZSbot.conf' file where it has: ▐▌ █ set redirect(TIMEOUT) $staffchan ▐▌ █ ▐▌ █ Add this line: ▐▌ █ set redirect(NEWDIR) "$staffchan $mainchan" ▐▌ █ ▐▌ █ Or you could state the channel names: ▐▌ █ set redirect(NEWDIR) "#mychannel #staffchannel #justforfun" ▐▌ █ ▐▌ █ And just repeat that for any other announces that you want in #staff as ▐▌ █ well. ▐▌ █ ▐▌ █ ___________..___________ ▐▌ █ ▐▌ █ STOP CREATION OF THE .MESSAGE FILE: ▐▌ █ ``````````````````````````````````` ▐▌ █ As stated in the 'README.ZSCONFIG': ▐▌ █ write_complete_message <TRUE|FALSE> ▐▌ █ Should a file be created in the releasedir, containing race-info etc? ▐▌ █ Default: TRUE ▐▌ █ ▐▌ █ write_complete_message_in_group_dirs <TRUE|FALSE> ▐▌ █ Should a .message file be created in the group-dirs? ▐▌ █ Default: TRUE ▐▌ █ ▐▌ █ So to stop the creation of the .message file, 'add' to your zsconfig.h ▐▌ █ file the following: ▐▌ █ #define write_complete_message FALSE ▐▌ █ #define write_complete_message_in_group_dirs FALSE ▐▌ █ ▐▌ █ TROUBLE SHOOTING: ▐▌ █ ````````````````` ▐▌ █ cat /project-zs-ng_r2500-v1.2.0/FAQ ▐▌ █ ▐▌ █ //---------------------------------------------------------------------- ▐▌ █ ▐▌ █ If you find mistakes, have suggestions, and or questions please post at ▐▌ █ mewbies forum HERE - thank you. ▐▌ █ ▐▌ █ Last update on 19 Mar '14 ▐▌ █ ▐▌ █▌ █▌ █▌ - mewbies.com - █▌ █▌ █▌ ██▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄██


ftp://pzs-ng:pzs-ng@ftp.pzs-ng.com:21021