view bin/metar @ 10565:19c56723a5cd

<int-e> rm wisdom/guestbot
author HackBot
date Sat, 01 Apr 2017 14:38:05 +0000
parents 631b602f7856
children aa29f6c3a587
line wrap: on
line source

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