GreetWondeR 1.8.2 (Eggdrop 1.x Greet TCL Script) --------------- Released: Tue Nov 2 1999 Author: Wingman http://www.WINGDesign.de/ GreetWondeR Homepage: http://www.WINGDesign.de/greetwonder/ --------------- 1. Introduction 2. Features 3. Installation/Setup 4. A short guide 5. DCC Commands 6. History 7. New procs (for tcl coders) 8. Credits ================================ == Section 1.: INTRODUCTION == ================================ First of all - i should say sorry, cause of my english - it's not the best ;). GreetWondeR is - you already guessed? :) - a greet tcl for Eggdrop 1.x. Yes, it (should) work on 1.1.x,1.2.x,1.3.x and the new 1.4.x. But why using _this_ tcl and not one of many others on ftp.eggheads.org (e.g. greetd.tcl by guppy)? Because this script is most comfortable and has the most features of all greet tcls. And nearly everything is controled via partyline, dcc commands. You want to add a greet for #chan1? Login and type: .+greet #chan1 Greetings! You want to greet only +o users on #chan2? No problem: .+greet #chan2 +o Greetings!. You want multiple lines? Just add one after another. You want random greets? Just add them and turn it on: .greetrandom #chan1 on! It also supports mask greets (e.g. *!*@*.de or *fuck*!*@*) or nickgreets (like .info, but the bot can greet you via msg, notice, public or me/action). Other greet scripts caused excess floods? This one NOT. It has an integrated queue system, which prevents your bot from quitting. It's based on the "Angel" (coded by Hippo) and "dontflood.patch/qstuff.patch" (coded by G`Quann) Flood protection. Last are eggdrop1.3.28+ patches, which integrate this protection in your eggdrop src. If this patch is installed, the tcl notices it and deactivates its own flood protection. Have fun and pls let me know, if you like this tcl (or not) :) ============================ == Section 2.: FEATURES == ============================ - full multi channel support - all commands via DCC available - each chan owner can set individual greets for his chan - supports flag greets - supports hostmask greets (e.g. *!*@*.de) - supports colored greets - supports random greets - supports var replacing, e.g. if u add a greet ".+greet Welcome greet-nick to greet-chan - For a help try /msg greet-botnick help" and let's say Wingman joins #Eggdrop, he'll see: "Welcome Wingman to #Eggdrop - For a help try /msg Eggie help" - can either msg/notice all users, just non-users or only known users - integrated flood protection (NEW QUEUE SYSTEM) - greets can be turned off - can import greets from a file - works on eggdrop 1.1.x/1.2.x/1.3.x or 1.4.x - and many more... (try .greethelp for a commandlist) ==================================== == Section 3.: INSTALLATION/SETUP == ==================================== GreetWondeR is the first eggdrop tcl script (i think), which has an Install script included. This is for complete newbies, who don`t know _anything_ about adding scripts to the config file of the bot. There are 2 different ways of installing greetwonder.tcl: First edit the header of greetwonder.tcl to your comfort. 1. Use: ./greetinstall a) ./greetinstall /path/to/your/eggdrop/configfile (type at your shell) (Example: ./greetinstall /home/wingman/eggdrop/eggdrop.conf.dist) b) do a .rehash (or restart) 2. the "classic" way a) cp greetwonder1.8.2/greetwonder.tcl /path/to/your/eggdrop/scripts b) vi (or an editor of your choice) eggdrop.conf.dist (eggdrop config file) c) insert at the END of the file the line: source scripts/greetwonder.tcl d) do a .rehash (or restart) =============================== == Section 4.: A SHORT GUIDE == =============================== 1. If you want to add a greet for #test, which should get all users: .+greet #test Hi greet-nick - Welcome to greet-chan! .greetwho #test all 2. If you want flag specific greets: .+greet #test +n Hi greet-nick - You are an Owner on greet-chan! You can define up to x lines (x is defined at the top of the tcl) for every flag or greet. 3. If you want to greet a nick with a specific line: .+greetnick Nickname pub Hi Nick, what's up? (Only nicknames, which are in the userlist are allowed) 4. If u want to greet all german users with a specific line: .+greetmask #channel *!*@*.de Guten Tag greet-nick in greet-chan! 5. A feature of this tcl is its varreplacing: greet-nick, greet-chan and greet-botnick are replaced by the tcl vars, which means, if let's say Wingman joins #Eggdrop and the botnick is Lamestbot, he`ll see (if there's greet like Hi greet-nick! Welcome to greet-chan - For a help try /msg greet-botnick help Hi Wingman! Welcome to #Eggdrop - For a help try /msg Lamestbot help) ================================ == Section 5.: DCC COMMANDS == ================================= .+greet [channel] [+flag] .-greet [channel] [+flag] .+greetnick .-greetnick .+greethost [channel] .-greethost [channel] .+greetfile [channel] [+flag] .greethow [channel] [+flag] .greetwho [channel] [+flag] .greetmove [channel] [+flag] .greetrandom [channel] [+flag] .greet [channel] .greetstatus [flood] .greethelp [command] .greetview [channel] .gmotd .greetnickview .greetinfo .greetver ========================= == Section 6.: HISTORY == ========================= Version 1.8.2 -- fixed: all errors with -|foo users, which can only use .greetcmds on their channels -- fixed: .greethow #foo unknown && .greetstatus -> there was not enough space in the column "Who" :) -- fixed: [18:43] wingman: your greet tcl is nice, but the indentation is whacked -- new: .greethelp && e.g. handle is only chanowner -> only cmds, which he can access, are listed. -- new: set greet(random) -- new: set greet(flag_greet_seperation) Version 1.8.1 -- fixed: some errors on random greets on -- fixed: .+greet +A test && greetview -> tcl error -- fixed: .+greetfile -> dynamic greetvar was not updated -- fixed: .+greetfile +o chan -> tcl error ($grethow not found) -- fixed: .-greet all && no greets saved -- fixed: .greetrand +f on -> tcl error (can't read "flag") -- fixed: now 1.3.29+ compatible (w/o loading compat.tcl) -- fixed: .+greet #foo +f test { test } test -> 'Added "test test test" (+f users) for #foo' -- fixed: .greetview && random greets off && $greet(max) < $count(flaggreets) -- new: .-greet [channel] [+flag] -> deletes all greets (for +flag users) -- new: .-greetmask all -> deletes all maskgreets -- new: .greetstatus & some design changes Version 1.8 -- fixed: .+greet didn't work, if you were only a chanowner (fixed in greetwonder1.7+greetfix.tcl) -- fixed: still one [matchattr] left (errors on 1.1.x) -- fixed: recoded greetqueue ^- added maximum queue var: set greet(maxqueue) ^- removed setting: set greet(senders) ^- removed setting: set greet(sendm) ^- new: set greet(sendq) (till activating GFP) -- fixed: .greetstatus && no greets set -- fixed: recoded greet:rejn & greet:delsplt ($greetsplit -> oo) -- fixed: .greetmove a b -> if a > b, then putlog "$from -> [incr to -1]" -- new: no filesys -> no .+greetfile -- new: moved greetwonder.readme -> readme.txt -- new: moved greetinstall -> greetinstall.tcl -- new: added '.greethelp greetinfo' -- new: added '.greethelp greetver' -- new: added '.greethelp qstuff' -- new: added support for 'dontflood.patch' or 'qstuffx.x.patch' (see greetwonder.tcl for more information on this patch) -- new: .-greet [channel] [+flag] -- new: .-greetmask [channel] [mask] Version 1.7 -- fixed: some minor bugs -- fixed: .greethelp -greet and some other .greethelp bugs -- fixed: .greetnickview -- fixed: .greetmove -- new: complete new queue system -> no one should be able to flood your bot because of greetwonder (no settings needed). Thx to HERZ for the shell for testing and Hippo for his "curious" solution to the queue problem ;) If your bot quits via "Excess Flood" because of GreetWondeR, then email me the logfile. Version 1.6.1 -- fixed: some probs with new dynamic channels (on .+chan && .+greet) -- fixed: .+greet #channel greet -> "greet" was added two times... Version 1.6 -- fixed: sometimes there were 2 putcmdlogs -- fixed: greet:flag2norm -> removed option "bot" (you can't greet bots with GreetWondeR) ; Usage: greet:flag2norm -- fixed: set greet(max) 0 disables now line limitations. -- new: back to the roots: moved .conf and .help to .tcl -- new: GreetWondeR now works on Eggdrop 1.1.x, 1.2.x and 1.3.x (any other version will cancel the script) -- new: moved +/-greethost -> +/-greetmask -- new: recoded and split up proc greet:join -> greet:chan/nick/host -- new: modified .greetstatus (some things changes) -- new: added to each var "# Default: " -- new: Option: set greet(hierarchie)