Code: Select all
.wz piarco TTCode: Select all
Tcl error [pub_wz]: can't read "fwhat(1)": no such variable
Code: Select all
Tcl: can't read "fwhat(1)": no such variable
Tcl: while executing
Tcl: "regsub -all {<([^<])*>} $fwhat($f) {} fwhat($f)"
Tcl: (procedure "wz_socket" line 72)
Tcl: invoked from within
Tcl: "wz_socket $nick $webpage $location $city $outtarg $wzoutput $zip $country"
Tcl: (procedure "wz_parse" line 291)
Tcl: invoked from within
Tcl: "wz_parse $nick $handle $location $outtarg"
Tcl: (procedure "pub_wz" line 18)
Tcl: invoked from within
Tcl: "pub_wz $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"
Code: Select all
.wz piarco
Code: Select all
Tcl error [pub_wz]: can't read "outtitle": no such variable
Code: Select all
Tcl: can't read "outtitle": no such variable
Tcl: while executing
Tcl: "string first Search $outtitle"
Tcl: (procedure "wz_socket" line 23)
Tcl: invoked from within
Tcl: "wz_socket $nick $webpage $location $city $outtarg $wzoutput $zip $country"
Tcl: (procedure "wz_parse" line 291)
Tcl: invoked from within
Tcl: "wz_parse $nick $handle $location $outtarg"
Tcl: (procedure "pub_wz" line 18)
Tcl: invoked from within
Tcl: "pub_wz $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"
Code: Select all
[Jan_15 11:05:02pm] <DragnLord> .wz -v piarco TT
[Jan_15 11:05:04pm] <WZ_Test> Piarco, Trinidad And Tobago -- 12:05 AM AST Updated: 12:00 AM AST on January 16, 2009
[Jan_15 11:05:05pm] <WZ_Test> Conditions: 73°F / 23°C | Partly Cloudy
[Jan_15 11:05:06pm] <WZ_Test> Humidity: 88% Dew Point: 70°F / 21°C
[Jan_15 11:05:07pm] <WZ_Test> Pressure: 29.92in / 1013hPa (Falling) Wind: Calm
[Jan_15 11:05:09pm] <WZ_Test> === Weather v4.2.5 by DragnLord ===I copied and pasted the latest version of the script into my file and reloaded it, this location has never worked for me since i started using your script. i dont modify scripts like yours as i am not the best at tcl and i know i will break it.DragnLord wrote:Apparently you have done something to break your copy of the script.
Code: Select all
[Jan_15 11:05:02pm] <DragnLord> .wz -v piarco TT [Jan_15 11:05:04pm] <WZ_Test> Piarco, Trinidad And Tobago -- 12:05 AM AST Updated: 12:00 AM AST on January 16, 2009 [Jan_15 11:05:05pm] <WZ_Test> Conditions: 73°F / 23°C | Partly Cloudy [Jan_15 11:05:06pm] <WZ_Test> Humidity: 88% Dew Point: 70°F / 21°C [Jan_15 11:05:07pm] <WZ_Test> Pressure: 29.92in / 1013hPa (Falling) Wind: Calm [Jan_15 11:05:09pm] <WZ_Test> === Weather v4.2.5 by DragnLord ===
The script allows people in the bot's user list to set defaults. This means that the bot must recognize the person's hostmask and match it to a user handle. What you describe is the bot not recognizing you, up to you to fix that, it has nothing to do with the script.sharpie1664 wrote:when i try and set default for ex .wz -d leeds uk the bot responds with
Sorry, dunno who you are, you can't set a default but in the tcl i have it set so anyone can set default
## Allow users to set a default weather city (can just type .wz to get weather)?
## Defaults are saved per user using XTRA fields in the user database.
## yes == 1 no == 0
set allow_user_def_wz 1
any ideas?
Thanks
Code: Select all
Tcl error [pub_wz]: can't read "outtitle": no such variable.wz denver, coGordon wrote:same error here,
it happens when you write only name of the city without country code,
for example,
.wz Paris ('.wz Paris FR' works)
Tcl error [pub_wz]: can't read "outtitle": no such variable
.wz Denver (i dont know how to make this work..)
Tcl error [pub_wz]: can't read "outtitle": no such variable
also i would like to know how to look for cities like New York or New Orleans..
reply i get, Sorry, orleans is not supported. Try .wzc <country> or /msg b0t .wzc <country> to find your 2 letter country code
Same problem as above.DragnLord wrote:This is correct.CtrlAltDel wrote: .wz denver, co
.wz new york, ny
.wz new orleans, la
that help?
You can also use ".wz help" to get some basic instructions.
Looks like I was wrong all my life.[23:18:01] <Kein> $weather boston
[23:22:34] <Bot> [22:22] Tcl error [pub_wz]: can't read "outtitle": no such variable
Lol?[23:29:07] <Kein> $weather -help
[23:29:08] <Bot> [22:29] Tcl error [pub_wz]: can't read "outtitle": no such variable
Code: Select all
## set these to whatever you want, it will carry over into the help now.
## Change .wz .wzc & .wzf to whatever you prefer.
set wflag "$"
set wzbind ${wflag}weather
set wzcbind ${wflag}wzc
set wzfbind ${wflag}forecast