Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 941 Bytes

README.md

File metadata and controls

47 lines (32 loc) · 941 Bytes

Currency

Currency services

Sources

Features

  • Download currency rate CSV file from BOT
  • Periodically download new currency rate CSV file.
  • Periodically backup to dropbox.
  • Use Slack Slash commands to get latest currency rate

Installation

go install github.com/hanksudo/currency@latest

Usage

# start web server for Slack
currency -web
curl "http://localhost:3030?currency=jpy"

# Retrieved latest CSV file
currency -renew

# Backup to Dropbox
# You need generate access token from your Dropbox app setting page
export DROPBOX_ACCESS_TOKEN=<YOUR-ACCESS-TOKEN>
currency -backup

Test slack command on local environment

go run . -web
ngrok http 3030

Then set your ngrok url on you slack command integration url.