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.

loading a script

General support and discussion of Eggdrop bots.
Post Reply
R
Robot42
Voice
Posts: 13
Joined: Fri Aug 25, 2006 8:07 pm

loading a script

Post by Robot42 »

Probably a noobish question but how do I load a tcl script to the bot?
User avatar
gumbydammit
Master
Posts: 311
Joined: Thu Sep 05, 2002 4:52 pm
Location: Canada
Contact:

Post by gumbydammit »

a.k.a. hellios
R
Robot42
Voice
Posts: 13
Joined: Fri Aug 25, 2006 8:07 pm

Post by Robot42 »

Okay, I have added my script to the scripts directory. The script is called rr.tcl, so do I open up notepad and add "source scripts/rr.tcl" at the bottom of eggdrop.conf?
d
deadite66
Halfop
Posts: 74
Joined: Mon May 30, 2005 2:49 am
Location: Great Yarmouth, UK

Post by deadite66 »

yes
<- tcl newb
R
Robot42
Voice
Posts: 13
Joined: Fri Aug 25, 2006 8:07 pm

Post by Robot42 »

Okay, I do that and then type in .rehash

It says that the command wasn't found. Why is this? source scripts/rr.tcl has been added to eggdrop.conf and rr.tcl is in the scripts folder.
d
deadite66
Halfop
Posts: 74
Joined: Mon May 30, 2005 2:49 am
Location: Great Yarmouth, UK

Post by deadite66 »

try .restart
<- tcl newb
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Robot42 wrote:Okay, I do that and then type in .rehash

It says that the command wasn't found. Why is this? source scripts/rr.tcl has been added to eggdrop.conf and rr.tcl is in the scripts folder.
The bot is running at this point and you issued .rehash command from within its partyline?
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
R
Robot42
Voice
Posts: 13
Joined: Fri Aug 25, 2006 8:07 pm

Post by Robot42 »

Okay, here's what I get when I use .rehash

[19:59:22] <Tyranitar> Rehashing.
[19:59:22] <Tyranitar> [17:59] Writing user file...
[19:59:22] <Tyranitar> [17:59] Writing channel file...
[19:59:22] <Tyranitar> [17:59] Rehashing ...
[19:59:22] <Tyranitar> [17:59] Listening at telnet port 30000 (all).
[19:59:22] <Tyranitar> [17:59] Userinfo TCL v1.07 loaded (URL BF GF IRL EMAIL DOB PHONE ICQ).
[19:59:22] <Tyranitar> [17:59] use '.help userinfo' for commands.
[19:59:22] <Tyranitar> [17:59] Userfile loaded, unpacking...
[20:00:01] <Tyranitar> [18:00] #pokenightmare (+trn) : [m/7 o/4 h/1 v/0 n/2 b/7 e/0 I/0]

I added another script in hoping that it would work, but that doesn't work either. When I type in !rr and !rules nothing pops up.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

That indicates that your tcl script is not being loaded indicating that you have not edited your bots conf file and added the following line and then saved it (on the shell):
# This is a good place to load scripts to use with your bot.
source scripts/rr.tcl
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
R
Robot42
Voice
Posts: 13
Joined: Fri Aug 25, 2006 8:07 pm

Post by Robot42 »

I just opened up eggdrop.conf on notepad and added it there. How would I do it on the shell?
C
Callisto
Halfop
Posts: 86
Joined: Sun Mar 13, 2005 11:04 am

Post by Callisto »

It pretty much depends what editors are loaded on your shell but the usual ones are pico nano vim. If you are not sure drop the shell admins an email, I think a lot of folks have their own favourites.
regards
Callisto
User avatar
kash2k
Voice
Posts: 18
Joined: Fri Aug 25, 2006 10:45 pm
Location: India

Post by kash2k »

Edit your TCL file with pico rr.tcl and browse to the last line of the script.

Check for any putlog " ".

In case there is none add this line at the end of the script :-

putlog "RR TCL script Loaded"

then do a .rehash

If u get a message saying RR TCL script loaded in the partyline then ur script is loaded and there is some problem in the script.

If you do not see the message then re-edit your eggdrop.conf and delete the line and re - add it again
Post Reply