view bin/metar @ 11251:4f78ebb7e1b8

<oerjan> learn The password of the month is equally offensive to all beliefs (but not time zones)
author HackBot
date Fri, 01 Dec 2017 03:01:21 +0000
parents aa29f6c3a587
children 4fcebe1fd761
line wrap: on
line source

#!/bin/bash
icao="$(airport "$*" | sed -e "s/.*, //;s/)//" | shuf -n 1)"
echo lambdabot: @metar "${icao:-$1}"