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 

http.tcl

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


Joined: 22 Feb 2008
Posts: 3

PostPosted: Fri Feb 22, 2008 11:52 am    Post subject: http.tcl Reply with quote

Ok so i have this youtube script, and it says in comments that http.tcl is required, which im assuming is so bot can connect with http to get the youtube information.

So i got this http.tcl script and put it in my scripts folder and added the source scripts/http.tcl to conf and restated bot, it didn't appear to load, and i got this error.


Code:
0415:11…   10 Rufus: [15:17] #Solo# rehash
15:11…   10 Rufus: Rehashing.
15:11…   10 Rufus: [15:17] Writing user file...
15:11…   10 Rufus: [15:17] Writing channel file...
15:11…   10 Rufus: [15:17] Rehashing ...
15:11…   10 Rufus: [15:17] Listening at telnet port 3336 (all).
15:11…   10 Rufus: [15:17] Tcl error in file 'rufus.conf':
15:11…   10 Rufus: [15:17] conflicting versions provided for package "http": 2.5.3, then 2.5.0
15:11…   10 Rufus: while executing
15:11…   10 Rufus: "package provide http 2.5.0"
15:11…   10 Rufus: (file "scripts/http-2.5.tcl" line 28)
15:11…   10 Rufus: invoked from within
15:11…   10 Rufus: "source scripts/http-2.5.tcl"
15:11…   10 Rufus: (file "rufus.conf" line 1338)
15:11…   10 Rufus: [15:17] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)


So yea, im figuring eggdrop has its own build in version or something? well i dunno, ill let you guys tell me Smile thanks.
Back to top
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Fri Feb 22, 2008 12:08 pm    Post subject: Reply with quote

Unload the script. There is already a HTTP package in the TCL library.

(Use package require http if you don't have it in your script)
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Feb 22, 2008 3:11 pm    Post subject: Reply with quote

Even further, never ever load tcl-packages using source, use the package require command for these. It'll make sure the proper version is loaded, keeps track which packages are loaded, etc.

Of course, this does not apply to normal scripts, which are loaded using the source command as usual.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Solo
Voice


Joined: 22 Feb 2008
Posts: 3

PostPosted: Sat Feb 23, 2008 7:55 pm    Post subject: Reply with quote

Yea i did it without the http tcl first, and the links didnt show still in irc (i tried a youtube and googler tcl scripts)

So, i'll try what you both suggested and come back Smile thanks.
Back to top
View user's profile Send private message
Solo
Voice


Joined: 22 Feb 2008
Posts: 3

PostPosted: Sun Feb 24, 2008 2:31 pm    Post subject: Reply with quote

Ok so i tried what you both said, and it didnt say anything about http loading, but i can get http results from the partyline, but not in the channels, and yes they are set so they can recieve them if it helps.
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Wed Feb 27, 2008 8:01 pm    Post subject: Reply with quote

Solo wrote:
Ok so i tried what you both said, and it didnt say anything about http loading, but i can get http results from the partyline, but not in the channels, and yes they are set so they can recieve them if it helps.

.chanset #yourchan +setting
Most scripts use this to allow/deny the ability to perform in each channel.

If you "READ" the documentation included with the script (if the script has none, read the top comments of the script) you will most always find the reason for things not going as expected.
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 -> 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