## Orignal code by: murf ## Maintained by: DragnLord ## ## #weather @ irc.shell-net.net ## ## READ THIS HEADER COMPLETELY BEFORE USING ## ## This script is based on murf's weather script and corrected to pull ## weather from www.wunderground.com (goto their site and click on a few a ## ads, lets keep em in business!) and gets US weather by city or zip and ## international weather by city. I will try to keep up with website changes ## as often as possible. ## ## Derivitive works based on this script (whole or in part) are not allowed. ## Use murf's 3.4.1 (which he released under GPL) to create your own scripts. ## ############################################################################### ## Runs on TCL 8.3 & 8.4, tested using TCL 8.4 with eggdrop v1.6.18. ############################################################################### ## ## Script will only display to channels set +weather, this was added ## so that public response could be totally turned off instead of ## merely making it respond privately. ## ## Example: To have the bot publicly display weather to channel ## #weather, you would use ".chanset #weather +weather" (without the ## quotes) on the dcc partyline (or telnet). ## ## These are public and message commands, not partyline! ## Usage: .wz [-d] [-o] [-u imc] [-t] [-p] [-short] [help] [country] ## or /msg bot .wz [-d] [-o] [-u imc] [-t] [-p] [-short] [country] ## ## state should be the two letter state code ## country defaults to US and is not needed for US weather ## ex. .wz denver,co ## .wz 11111 ## ## Canada & Australia are no longer special cases, and use the same ## syntax as other countries ## ## -d [country] will set a default allowing user ## to just type .wz ## -o will give output in long or short ## depending on opposite default ## setting for wz_long ## -u choose units imperial/metric/combined ## -s [country] get sun rise/set info ## -m [country] get moon phase ## -t [country] get the time ## -p precipitation report for US only ## ## ## Country codes now match standard internet country codes as closely as ## possible, but .wzc allows users to search for their code. Input to .wz ## can be entererd as full country name. ## ## .wzc or /msg bot .wzc ## ## ## ## ############################################################################### ###############################################################################