view bin/metar @ 11291:3fde771d8b49

<int-e> learn The password of the month is early.
author HackBot
date Sun, 31 Dec 2017 11:27:10 +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}"