| View previous topic :: View next topic |
| Author |
Message |
Robot42 Voice
Joined: 25 Aug 2006 Posts: 13
|
Posted: Sun Aug 27, 2006 10:47 am Post subject: loading a script |
|
|
| Probably a noobish question but how do I load a tcl script to the bot? |
|
| Back to top |
|
 |
gumbydammit Master

Joined: 05 Sep 2002 Posts: 311 Location: Canada
|
|
| Back to top |
|
 |
Robot42 Voice
Joined: 25 Aug 2006 Posts: 13
|
Posted: Sun Aug 27, 2006 11:12 am Post subject: |
|
|
| 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 |
|
 |
deadite66 Halfop
Joined: 30 May 2005 Posts: 74 Location: Great Yarmouth, UK
|
Posted: Sun Aug 27, 2006 11:38 am Post subject: |
|
|
yes _________________ <- tcl newb |
|
| Back to top |
|
 |
Robot42 Voice
Joined: 25 Aug 2006 Posts: 13
|
Posted: Sun Aug 27, 2006 1:30 pm Post subject: |
|
|
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 |
|
 |
deadite66 Halfop
Joined: 30 May 2005 Posts: 74 Location: Great Yarmouth, UK
|
Posted: Sun Aug 27, 2006 2:42 pm Post subject: |
|
|
try .restart _________________ <- tcl newb |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sun Aug 27, 2006 8:34 pm Post subject: |
|
|
| 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 |
|
 |
Robot42 Voice
Joined: 25 Aug 2006 Posts: 13
|
Posted: Sun Aug 27, 2006 9:05 pm Post subject: |
|
|
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 |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sun Aug 27, 2006 11:42 pm Post subject: |
|
|
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 |
|
 |
Robot42 Voice
Joined: 25 Aug 2006 Posts: 13
|
Posted: Mon Aug 28, 2006 4:17 pm Post subject: |
|
|
| I just opened up eggdrop.conf on notepad and added it there. How would I do it on the shell? |
|
| Back to top |
|
 |
Callisto Halfop
Joined: 13 Mar 2005 Posts: 86
|
Posted: Mon Aug 28, 2006 4:25 pm Post subject: |
|
|
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 |
|
 |
kash2k Voice

Joined: 25 Aug 2006 Posts: 18 Location: India
|
Posted: Thu Aug 31, 2006 10:07 pm Post subject: |
|
|
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 |
|
 |
|