Difference between revisions of "IRC:exec aliases"

From SoylentNews
Jump to: navigation, search
(lock alias)
(weather)
Line 39: Line 39:
  
 
==weather==
 
==weather==
~weather location
+
 
 +
Syntax: ~weather location
 +
 
 +
Developer(s): [[User:Crutchy|crutchy]]
 +
 
 +
Source:
 +
* https://github.com/crutchy-/exec-irc-bot/blob/master/scripts/weather.php
 +
* https://github.com/crutchy-/exec-irc-bot/blob/master/scripts/weather_lib.php
 +
 
 +
Related commands:
 +
* [[IRC:exec_aliases#weather-add|~weather-add]]
 +
 
 +
===Usage examples===
 +
<source lang="dot">
 +
<crutchy> ~weather
 +
<exec> IRC WEATHER INFORMATION BOT
 +
<exec>  usage: "~weather location" (visit http://wiki.soylentnews.org/wiki/IRC:exec#Weather_script for more info)
 +
<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 lang="dot">
 +
<crutchy> ~weather JFK
 +
<exec> Weather for Brooklyn, NY US at 2014-04-14 03:36:00 (UTC) ~ 0.8 hrs ago:
 +
<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 lang="dot">
 +
<kobach> ~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>    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 lang="dot">
 +
<crutchy> ~weather-add crutchy melbourne australia
 +
<exec> code "crutchy" set for location "melbourne australia"
 +
</source>
 +
 
 +
 
 +
<source lang="dot">
 +
<crutchy> ~weather crutchy
 +
<exec> Weather for Melbourne Regional Office, VIC, Australia at 2014-04-14 11:00:00 (UTC) ~ 0.8 hrs ago:
 +
<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>
  
 
==weather-add==
 
==weather-add==

Revision as of 09:36, 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:

Usage examples

<crutchy> ~weather
<exec> IRC WEATHER INFORMATION BOT
<exec>   usage: "~weather location" (visit http://wiki.soylentnews.org/wiki/IRC:exec#Weather_script for more info)
<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


<crutchy> ~weather JFK
<exec> Weather for Brooklyn, NY US at 2014-04-14 03:36:00 (UTC) ~ 0.8 hrs ago:
<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°


<kobach> ~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>     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°


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


<crutchy> ~weather crutchy
<exec> Weather for Melbourne Regional Office, VIC, Australia at 2014-04-14 11:00:00 (UTC) ~ 0.8 hrs ago:
<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°

weather-add

~weather-add name location (enables storing a short name to refer to a longer location description when using ~weather)

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