Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

hanksudo/currency

Repository files navigation

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.

About

Currency Exchange Rate

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /