2 Questions...$com result and text formatting - 17/04/06 04:29 AM
Hi,
I've got my DLL working using $com and it gives me the weather information for the zip code I give it, but I'm also getting this line in the status window:
1 Unknown command
Any ideas what's doing that or how to stop it? My remote is this
I'd also like to format the text in the result so that the "data types" words are bold and in green, and my mind isn't coming up with it right now. A sample output of how it is now would be:
Temp: 51 Feels Like: 51 Conditions: Cloudy Wind From: NE at 3MPH Gusting to N/A MPH
I'd like the words like "Temp:" and "Feels Like:" to be bold and green. How do I separate the output and just bold and color the "titles"? Thanks.
I've got my DLL working using $com and it gives me the weather information for the zip code I give it, but I'm also getting this line in the status window:
1 Unknown command
Any ideas what's doing that or how to stop it? My remote is this
Code:
on 1:text:!weather*:#:{ if ($network == BlakeNET) { if ($com(weather)) { var %zip = $2 $com(weather,GetWeather,3,bstr,%zip) msg botserv say $chan $com(weather).result } else { comopen weather weather.GWeather var %zip = $2 $com(weather,GetWeather,3,bstr,%zip) msg botserv say $chan $com(weather).result } } }
I'd also like to format the text in the result so that the "data types" words are bold and in green, and my mind isn't coming up with it right now. A sample output of how it is now would be:
Temp: 51 Feels Like: 51 Conditions: Cloudy Wind From: NE at 3MPH Gusting to N/A MPH
I'd like the words like "Temp:" and "Feels Like:" to be bold and green. How do I separate the output and just bold and color the "titles"? Thanks.