egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Trouble figuring out scripts

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
locke
Voice


Joined: 22 Feb 2007
Posts: 2

PostPosted: Thu Feb 22, 2007 7:09 am    Post subject: Trouble figuring out scripts Reply with quote

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.
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Thu Feb 22, 2007 7:49 am    Post subject: Reply with quote

From eggdrop.conf:
Quote:
##### 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
Back to top
View user's profile Send private message Visit poster's website
locke
Voice


Joined: 22 Feb 2007
Posts: 2

PostPosted: Thu Feb 22, 2007 9:07 am    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Feb 22, 2007 9:40 am    Post subject: Reply with quote

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).
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Thu Feb 22, 2007 3:48 pm    Post subject: Reply with quote

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 Razz) 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:

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:

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.}
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Feb 22, 2007 4:35 pm    Post subject: Reply with quote

That's just too much for just a badchan script Laughing
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Thu Feb 22, 2007 6:36 pm    Post subject: Reply with quote

Sir_Fz wrote:
That's just too much for just a badchan script Laughing

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.
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Thu Feb 22, 2007 7:53 pm    Post subject: Reply with quote

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
Quote:
#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. Laughing
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber