slv-prebw

Created: 2016-11-05 16:42
Updated: 2017-05-11 16:41

README.md

slv-prebw

pzs-ng dZBot/ngbot plugin to show bw after pre

so what's so special about ANOTHER prebw script? well, this one works seperate from pre script so you can prolly use it with every pre script thats out there. also it's an pzs-ng plugin... or kinda ;) an other feature is that it doesnt announce anything if there's no output bw made (can be disabled tho). this is my first public script so if anything fucks up dont blame me. also i dont like (obvious) questions about this, if it doesnt work for you - too bad, it does for me! :p

you'll need:

  • pzs-ng.
  • pzs-ng's sitewho.
  • site pre script that logs PRE to glftpd.log (tested with foopre).

  1. put slv-prebw.sh in glftpd/bin dir.

  2. put PreBW.tcl in eggdrop/scripts/pzs-ng/plugins/PreBW.tcl.

  3. config slv-prebw.sh to your liking (paths, announce layout).
    SLEEPS controls how many times it samples output bw, i.e:
    "30 15 15 15 15" will output:
    30s: 1@5.3mb/s 45s: 5@11.7mb/s 60s: 3@10.3mb/s 75s: 0@00kb/ 90s: 0@00kb/s

  4. config PreBW.tcl
    ngBot: keep this line: "variable np [namespace qualifiers [namespace parent]]"
    -or-
    dZSbot: comment line above and uncomment: #variable np ""

    and if you put the .sh somewhere else change this path:
    set slvprebw "$glroot/bin/slv-prebw.sh"

  5. config dZSbot.conf / ngBot.conf
    you need to add PREBW to msgtypes(SECTION)
    -and-

   set redirect(PREBW)  $mainchan
   set disable(PREBW)   0
   set chanlist(PREBW)  $mainchan
   set variables(PREBW) "%pf %prebw"
  1. add to theme:
    announce.PREBW = "[%b{prebw }][%section] %prebw"

  2. add to eggdrop.conf:
    source scripts/pzs-ng/plugins/PreBW.tcl

  3. rehash your eggdrop, done.

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more