IRC:exec aliases: Difference between revisions

From SoylentNews
Jump to navigation Jump to search
Line 54: Line 54:


<source lang="dot">
<source lang="dot">
<crutchy> ~weather
crutchy> ~weather
<exec> IRC WEATHER INFORMATION BOT
<exec> syntax: ~weather location
<exec>  usage: "~weather location" (visit http://wiki.soylentnews.org/wiki/IRC:exec#Weather_script for more info)
<exec> weather data courtesy of the APRS Citizen Weather Observer Program (CWOP) @ http://weather.gladstonefamily.net/
<exec>   data courtesy of the APRS Citizen Weather Observer Program (CWOP) @ http://weather.gladstonefamily.net/
<exec>  by crutchy: https://github.com/crutchy-/test/blob/master/scripts/weather.php
</source>
</source>




<source lang="dot">
<source lang="dot">
<crutchy> ~weather JFK
crutchy> ~weather JFK
<exec> Weather for Brooklyn, NY US at 2014-04-14 03:36:00 (UTC) ~ 0.8 hrs ago:
<exec> weather for Brooklyn, NY US at 5:16 am (EDT) ~ 36 mins ago: temp: 13.3°C (56°F), dp: 12.1°C (53.7°F), press: 1014.6 mb (+0.1 mb/18 mins), humid: 92%, wind: 0 km/h (0 mph) @ 31°
<exec>    temperature = 66°F (18.9°C)   dewpoint = 56.3°F (13.5°C)
<exec>    barometric pressure = 1017.3 mb ~ change of 0 mb over past 0.2 hrs    relative humdity = 71%
<exec>    wind speed = 1 mph (1.6 km/h)   wind direction = 336°
</source>
</source>




<source lang="dot">
<source lang="dot">
<kobach> ~weather vostok, aq
crutchy> ~weather vostok, aq
<exec> Weather for Vostok Station (RUS), -, Antarctica (the territory South of 60 deg S) at 2014-04-14 12:00:00 (UTC) ~ 0.8 hrs ago:
<exec> weather for Vostok Station (RUS), -, Antarctica (the territory South of 60 deg S) at 2014-08-18 06:00:00 (UTC) ~ 234 mins ago: temp: -69.4°C (-92.9°F), dp: -74.4°C (-101.9°F), press: 943.6 mb (-1.1 mb/360 mins), humid: 47%, wind: 16 km/h (10 mph) @ 230°
<exec>    temperature = -83.7°F (-64.3°C)   dewpoint = -90.9°F (-68.3°C)
<exec>    barometric pressure = 948.9 mb ~ change of 1.6 mb over past 6 hrs    relative humdity = 57%
<exec>    wind speed = 10 mph (16 km/h)   wind direction = 200°
</source>
</source>


Line 82: Line 74:
<source lang="dot">
<source lang="dot">
<crutchy> ~weather crutchy
<crutchy> ~weather crutchy
<exec> Weather for Melbourne Regional Office, VIC, Australia at 2014-04-14 11:00:00 (UTC) ~ 0.8 hrs ago:
<exec> weather for Morwell (latrobe Valley Airport), VIC, Australia at 6:01 pm (EST) ~ 108 mins ago: temp: 11.3°C (52.3°F), dp: 9°C (48.2°F), press: 1020.7 mb (+0.7 mb/60 mins), humid: 85%, wind: 1.6 km/h (1 mph) @ 120°
<exec>    temperature = 60.4°F (15.8°C)   dewpoint = 50.2°F (10.1°C)
<exec>    barometric pressure = 1023.5 mb ~ change of -1.4 mb over past 3 hrs    relative humdity = 68%
<exec>    wind speed = (no data)   wind direction = 0°
</source>
</source>



Revision as of 09:53, 18 August 2014

IRC:exec

join

join #channel (don't have to be channel op)

sed

~sed on|off
[nick[:|,|>|.] ]s/pattern/replace[/[g]] (similar to SedBot)

part

~part (bot leaves channel)

list

~list (lists available commands)

list-auth

~list-auth (lists available commands requiring NickServ account authorization)

define

~define term

define-add

~define-add term, meaning

isup

~isup host[:port] (checks connection, returns http status if found)

rainbow

~rainbow text

translate

~translate tolang text (auto-detects source lang, eg: ~translate en prueba)

translate-sl

~translate-sl fromlang tolang text (eg: ~translate-sl es en prueba)

time

~time location

weather

Syntax: ~weather location

Developer(s): crutchy

Source:

Related commands:


crutchy> ~weather
<exec> syntax: ~weather location
<exec> weather data courtesy of the APRS Citizen Weather Observer Program (CWOP) @ http://weather.gladstonefamily.net/


crutchy> ~weather JFK
<exec> weather for Brooklyn, NY US at 5:16 am (EDT) ~ 36 mins ago: temp: 13.3°C (56°F), dp: 12.1°C (53.7°F), press: 1014.6 mb (+0.1 mb/18 mins), humid: 92%, wind: 0 km/h (0 mph) @ 31°


crutchy> ~weather vostok, aq
<exec> weather for Vostok Station (RUS), -, Antarctica (the territory South of 60 deg S) at 2014-08-18 06:00:00 (UTC) ~ 234 mins ago: temp: -69.4°C (-92.9°F), dp: -74.4°C (-101.9°F), press: 943.6 mb (-1.1 mb/360 mins), humid: 47%, wind: 16 km/h (10 mph) @ 230°


<crutchy> ~weather crutchy
<exec> weather for Morwell (latrobe Valley Airport), VIC, Australia at 6:01 pm (EST) ~ 108 mins ago: temp: 11.3°C (52.3°F), dp: 9°C (48.2°F), press: 1020.7 mb (+0.7 mb/60 mins), humid: 85%, wind: 1.6 km/h (1 mph) @ 120°

weather-add

Syntax: ~weather-add name location

Developer(s): crutchy

Source:

Related commands:

Description:

Enables storing a short name to refer to a longer location description when using the ~weather or ~time commands.

If a name already exists, setting it again will overwrite the existing named location.

Names cannot be deleted at this stage.

A few thousand ICAO and IATA/FAA airport codes have been imported into the codes file thanks to OpenFlights.


<crutchy> ~weather-add crutchy melbourne australia
<exec> code "crutchy" set for location "melbourne australia"

queue

~queue (returns number of SN submissions in the queue)

lock

~lock alias|~unlock (treats all lines entered as being prefixed with alias, channel-specific)

location

~location code