This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Trouble figuring out scripts

Support & discussion of released scripts, and announcements of new releases.
Post Reply
l
locke
Voice
Posts: 2
Joined: Thu Feb 22, 2007 6:26 am

Trouble figuring out scripts

Post by locke »

I just installed an eggdrop bot on ubuntu 6.10 ... basically just downloaded tcl and tcl-dev 8.4 from synaptic and compiled the bot myself.

The bot itself is working but for some reason any of the scripts I try to load are not. I am trying some of the basic channel scripts to kick someone if they are in a banned channel (tried badchan.tcl, badwhois.tcl and mc.ban_channel.tcl and nothing!!!)

Please help as I am going up the wall.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

From eggdrop.conf:
##### SCRIPTS #####

# This is a good place to load scripts to use with your bot.

# This line loads script.tcl from the scripts directory inside your Eggdrop's
# directory. All scripts should be put there, although you can place them where
# you like as long as you can supply a fully qualified path to them.
#
# source scripts/script.tcl
All scripts contain instructions on setting up within the header; make sure you .rehash your bot after any editing.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
l
locke
Voice
Posts: 2
Joined: Thu Feb 22, 2007 6:26 am

Post by locke »

Done that ... put the scripts in as speficied ... but they don't do what they are supposed to do ...

Could you recommend a simple script i can try that i can test to see whether the script is not doing what i want or whether its my bot?

I can see the script loading when the eggdrop does ... just doesn't do anything!
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Besides loading the script, you may need to configure it. Most scripts are disabled by default and you'll have to add your channel(s) into the script or via .chanset (depends on the script).
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

I use mc_banchan, and it works, but it did need some modifications to work with tcl-special chars, and unfortunately the author no longer maintains it. It worked ok as long as you were not trying to use wildcards or tcl-special chars in the masks (it couldn't delete wildcards, you'd have to do it manually.)

I did some other mods to it as well, to give it an exemption list and other assorted hacks (like removing the dangerous tcl junk and the "call home" crap). I added a bit of a help file in the partyline, if you type .banchan, it'll give a synopsis of the commands. I also did a hack so that you can save or reload the banlist, in case you have to edit the banfile by hand (like to remove wildcarded bans.)

Keep in mind, the configuration for this script is not at all simple, but it does work once you set it up right. It's about the best bad-channel script I've seen (which just means, someone needs to write a better one :P) I've been "planning" to re-write this one for about a year, but just don't have the motivation to dig through all this messy obfuscated code..It'd be easier to simply re-write a new script from scratch.

I put my copy here if you're interested:
http://members.dandy.net/~fbn/mcbanchan.rosc.tcl.txt

My changes are not documented, nor do I offer any support for it. If it's useful to anyone, great, if not, oh well.

Here are the settings I use, for reference:

Code: Select all

channel set #friends +udef-flag-mc.ban_channel
channel set #friends +udef-flag-mc.ban_channel.exempt.ops
channel set #friends -udef-flag-mc.ban_channel.exempt.voices
channel set #friends udef-str-mc.ban_channel.exempt.flags o|o
channel set #friends udef-int-mc.ban_channel.scan_time 1
channel set #friends udef-int-mc.ban_channel.rescan_time 2
channel set #friends udef-int-mc.ban_channel.warnings 1
And some example bans from the banlist:

Code: Select all

global *!!!* {Banned channel matching *!!!* - Must be pure excitement in that channel.}
global *toilet* {Banned channel matching *toilet* - You forgot to flush..}
global *whore* {Banned channel matching *whore* - Here's $2 just to go away.}
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

That's just too much for just a badchan script :lol:
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Sir_Fz wrote:That's just too much for just a badchan script :lol:
Yeah, it is..But I'm too lazy to trim the fat from it or write a new one. I liked that particular script because it does (multiple) warnings and had a lot of flexibility/options. Maybe someday I'll motivate myself to write a new one using the best features from mcbanchan, but consolidating the code to make it more streamlined.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

rosc2112 wrote:It worked ok as long as you were not trying to use wildcards
I actually use that script and have done so for quite some time. It does, as previously stated, have some very nice features.

The wildcards do work very well except for removal as rosc2112 stated.

From badc.data
#channel *sex* Pervert!
The script was initially released in 2000 and some "interesting" routines were used (MC_8 later ceased using these in newer scripts); one of these routines relies on two others (from memory).

I removed the auto update function many moons ago. :lol:
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Post Reply