view bin/metar @ 11434:9debc4ee24cc

<wob_jonas> `` rm -v bin/welc\xc3\xb6me
author HackBot
date Thu, 01 Mar 2018 17:45:43 +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}"