| View previous topic :: View next topic |
| Author |
Message |
Solo Voice
Joined: 22 Feb 2008 Posts: 3
|
Posted: Fri Feb 22, 2008 11:52 am Post subject: http.tcl |
|
|
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 thanks. |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Fri Feb 22, 2008 12:08 pm Post subject: |
|
|
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 |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri Feb 22, 2008 3:11 pm Post subject: |
|
|
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 |
|
 |
Solo Voice
Joined: 22 Feb 2008 Posts: 3
|
Posted: Sat Feb 23, 2008 7:55 pm Post subject: |
|
|
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 thanks. |
|
| Back to top |
|
 |
Solo Voice
Joined: 22 Feb 2008 Posts: 3
|
Posted: Sun Feb 24, 2008 2:31 pm Post subject: |
|
|
| 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 |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Wed Feb 27, 2008 8:01 pm Post subject: |
|
|
| 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 |
|
 |
|