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 

loading a script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
Robot42
Voice


Joined: 25 Aug 2006
Posts: 13

PostPosted: Sun Aug 27, 2006 10:47 am    Post subject: loading a script Reply with quote

Probably a noobish question but how do I load a tcl script to the bot?
Back to top
View user's profile Send private message
gumbydammit
Master


Joined: 05 Sep 2002
Posts: 311
Location: Canada

PostPosted: Sun Aug 27, 2006 10:58 am    Post subject: Reply with quote

http://www.egghelp.org/enhance.htm
_________________
a.k.a. hellios
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Robot42
Voice


Joined: 25 Aug 2006
Posts: 13

PostPosted: Sun Aug 27, 2006 11:12 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
deadite66
Halfop


Joined: 30 May 2005
Posts: 74
Location: Great Yarmouth, UK

PostPosted: Sun Aug 27, 2006 11:38 am    Post subject: Reply with quote

yes
_________________
<- tcl newb
Back to top
View user's profile Send private message
Robot42
Voice


Joined: 25 Aug 2006
Posts: 13

PostPosted: Sun Aug 27, 2006 1:30 pm    Post subject: Reply with quote

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


Joined: 30 May 2005
Posts: 74
Location: Great Yarmouth, UK

PostPosted: Sun Aug 27, 2006 2:42 pm    Post subject: Reply with quote

try .restart
_________________
<- tcl newb
Back to top
View user's profile Send private message
Alchera
Revered One


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

PostPosted: Sun Aug 27, 2006 8:34 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Robot42
Voice


Joined: 25 Aug 2006
Posts: 13

PostPosted: Sun Aug 27, 2006 9:05 pm    Post subject: Reply with quote

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


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

PostPosted: Sun Aug 27, 2006 11:42 pm    Post subject: Reply with quote

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):
Quote:
# 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
Back to top
View user's profile Send private message Visit poster's website
Robot42
Voice


Joined: 25 Aug 2006
Posts: 13

PostPosted: Mon Aug 28, 2006 4:17 pm    Post subject: Reply with quote

I just opened up eggdrop.conf on notepad and added it there. How would I do it on the shell?
Back to top
View user's profile Send private message
Callisto
Halfop


Joined: 13 Mar 2005
Posts: 86

PostPosted: Mon Aug 28, 2006 4:25 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
kash2k
Voice


Joined: 25 Aug 2006
Posts: 18
Location: India

PostPosted: Thu Aug 31, 2006 10:07 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help 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