view bin/metar @ 11280:3c005411c086

<oerjan> slwd tanebventions: food//s/mushrooms/mushrooms, nutella/
author HackBot
date Tue, 19 Dec 2017 21:00:25 +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}"