Skip to content

Instantly share code, notes, and snippets.

@lucasuyezu
Created February 2, 2015 05:33
Show Gist options
  • Save lucasuyezu/854f1bbb77e8edc5e664 to your computer and use it in GitHub Desktop.
Save lucasuyezu/854f1bbb77e8edc5e664 to your computer and use it in GitHub Desktop.
# Setup
$conversions = 0
# Conversion
currency, amount = parse_tweet("0.5 in #USD")
result = convert('USD', 0.5)
reply("#{amount} in #{currency} is #{result}")
$conversions += 1
# Checking later
reply("We have made #{$conversions} conversions so far")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment