Skip to content

Latest commit

 

History

History
executable file
·
43 lines (31 loc) · 1 KB

README.md

File metadata and controls

executable file
·
43 lines (31 loc) · 1 KB

reddit whisky exposé

made by /u/rhabarba

License:

WTFPL

Requirements:

  • Racket

  • the YAML module (raco pkg install yaml)

  • a file named whiskies.yaml built like this:

    meta: - username: your-reddit-username

    whiskies: - name: Foo Bar age: 12 price: $42 alcvol: 42.6 region: Speyside subreddit: scotch commentsid: 7gg3o9 rating: 100

      - name: Quux
        age: NAS
        subreddit: worldwhisky
        commentsid: abcdef
    

The meta field is mandatory.

All whisky fields except name, subreddit and commentsid (which is the ID part of the reddit thread URL) are optional, the table will remain empty in the particular fields.

Notes:

For efficiency reasons, the list is read once on startup. Restart the server if you changed your YAML file. (This could be automatic if you use a VCS, e.g. a post-commit hook.)