Gamebuster icon

Extreme weather notifier beta v0.0.1.1

Gamebuster | PRO | 06/27/15 11:42:16 PM UTC | 0 ⭐ | 1007 👁️ | Never ⏰ | []
text |

1.06 KB

|

None

|

0 👍

/

0 👎

options:
	state : NY
	county : New York County
	#state is the initials of your state
	#county is the full name of your county, including the word "county"
 command /print:
	trigger:
		$ thread
		set {_warning} to text from url "http://www.nws.noaa.gov/view/prodsByState.php?state={@state}&prodtype=warnings##SVRCAE"
		set {_comparison} to {_warning}
		set {_irreleventText.beginning} to first index of "<pre>" in {_warning}
		set {_first} to the first {_irreleventText.beginning} characters of {_warning}
		replace all {_first} in {_comparison} with ""
		set {_irreleventText.end} to first index of "</pre>" in {_comparison}
		set {_comparison} to the first {_irreleventText.end} characters of {_comparison}
		replace all {_last} in {_comparison} with ""
		if {_comparison} contains "Warning":
			if {_comparison} contains "{@county}":
				broadcast "<light red>YES"
			else:
				message "<light green>NO"
		else if {_warning} is null:
			message "<red>404 Error, check URL."
		else:
			message "<light green>NO"
		#message "%{_comparison}%" to the console

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎