IRC:exec aliases

From SoylentNews
Jump to navigation Jump to search

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 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

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.

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