view bin/metar @ 10688:5eae1c34498c

<oerjan> # Indeed not//`forget jwinslow23
author HackBot
date Sun, 16 Apr 2017 01:19:16 +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}"