Difference between revisions of "IRC:exec aliases"
(→weather) |
|||
Line 57: | Line 57: | ||
==weather== | ==weather== | ||
− | Syntax: ~weather location | + | Syntax: |
+ | * ~weather location | ||
− | + | Examples: | |
* ~weather JFK | * ~weather JFK | ||
* ~weather vostok, aq | * ~weather vostok, aq | ||
Line 68: | Line 69: | ||
* [[IRC:exec_aliases#time-add|~time-add]] | * [[IRC:exec_aliases#time-add|~time-add]] | ||
− | + | Developers: | |
+ | * [[User:Crutchy|crutchy]] | ||
− | + | Sources: | |
* https://github.com/crutchy-/exec-irc-bot/blob/master/scripts/weather.php | * 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 | * https://github.com/crutchy-/exec-irc-bot/blob/master/scripts/weather_lib.php | ||
Line 110: | Line 112: | ||
==lock== | ==lock== | ||
− | ~lock alias | + | ~lock alias (treats all lines entered as being prefixed with alias, channel-specific) |
+ | |||
+ | ==unlock== | ||
+ | |||
+ | Syntax: | ||
+ | * ~unlock | ||
+ | |||
+ | Related commands: | ||
+ | * ~lock | ||
+ | |||
+ | Developers: | ||
+ | * [[User:Crutchy|crutchy]] | ||
+ | |||
+ | Sources: | ||
+ | * https://github.com/crutchy-/exec-irc-bot/blob/master/irc_lib.php | ||
==location== | ==location== |
Revision as of 12:14, 20 August 2014
Contents
- 1 join
- 2 sed
- 3 part
- 4 list
- 5 list-auth
- 6 define
- 7 define-add
- 8 define-count
- 9 define-delete
- 10 define-list
- 11 define-sources
- 12 isup
- 13 header
- 14 rainbow
- 15 translate
- 16 translate-sl
- 17 time
- 18 weather
- 19 weather-add
- 20 queue
- 21 lock
- 22 unlock
- 23 location
- 24 count
- 25 first
- 26 last
- 27 find-first
- 28 find-last
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
define-count
~define-count
define-delete
~define-delete
define-list
~define-list
define-sources
~define-sources
isup
~isup host[:port] (checks connection, returns http status if found)
header
~header <header> <url>
returns value of header (if found)
fails silently if error occurs or header not 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
Examples:
- ~weather JFK
- ~weather vostok, aq
- ~weather crutchy
Related commands:
Developers:
Sources:
- 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
weather-add
Syntax: ~weather-add name location
Developer(s): 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:
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 (treats all lines entered as being prefixed with alias, channel-specific)
unlock
Syntax:
- ~unlock
Related commands:
- ~lock
Developers:
Sources:
location
~location code
count
~count <nick>
first
~first <nick>
last
~last <nick>
find-first
~find-first <text>
find-last
~find-last <text>