This script pulls the launch data from NASA's schedule page.
# Commands typed in channel or privmsg (using the default configured command):
# .nasa - show the next launch schedule.
# .nasa 5 - show the next 5 launches.
# .nasa all - show all launches on the schedule (output goes to privmsg)
# .nasa help - show the brief helpfile.
Output format:
Next Launch: Feb. 15 6:07:37 p.m. - FL - THEMIS
URL: http://www.nasa.gov/mission_pages/themi ... index.html
THEMIS will study the dynamic and colorful eruptions of auroras.
Vehicle Type: Delta II rocket
Launch Site : Cape Canaveral Air Force Station launch pad 17-B
--
I have a suspicion that older eggdrops/tcl's didn't use a variable in the lindex command, so if you changed [lindex $text 0] to [lindex text 0] it should probably work. You'd have to remove the $ from the other [lindex] commands elsewhere, as well. I counted five of them in the script.. Try that and let me know if that works for you (otherwise, just upgrade.. Be a good idea to upgrade anyway.)
The other idea that occurs to me is that the older versions expected the variable to be a list already, which could be accomplished by using [split] or
on the variables in question.. That would take a bit more work, and it's just easier for me if you upgrade rather than me rework the script to work with obsolete and unsupported old versions
[lindex $text 0] and [lindex text 0] both will work (on older tcl versions and newer) but the difference is that the first one will return the first element in the list called "text" while the second one will always return the word "text."
Thanks Sir_Fz, one of those late night coding oversights
Strangely, despite the lindex/lrange thing, my copy of the script worked, even after doing a restart..Oddness.. Anyway, I'll upload a new copy of the script, but I changed the format of the output some, cos I thought the original was a bit ugly.