Permalink
Browse files

Merge branch 'master' of github.com:oliyh/slacky

  • Loading branch information...
oliyh committed Mar 1, 2018
2 parents 131e2d6 + 7cc3336 commit c1b66b0112664e98fff5115b77429efb9ac3f7f4
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/slacky/memecaptain.clj
@@ -103,8 +103,8 @@
(defn create-direct [image-url text-upper text-lower]
(let [extension (second (re-find #".*\.(\w{3,4})($|\?)" image-url))
filename (str (UUID/randomUUID) (when extension (str "." extension)))
output-file (io/file "./memes/" filename)
input-file (io/file "./templates/" filename)]
output-file (io/file "memes/" filename)
input-file (io/file "templates/" filename)]
(log/info "Downloading" image-url "to" (.getPath input-file))
(try
(let [response (http/get image-url {:as :byte-array})]

0 comments on commit c1b66b0

Please sign in to comment.