Permalink
Browse files

Renaming to Slacky

  • Loading branch information...
oliyh committed Jul 3, 2015
1 parent 205afd4 commit 2633b0bb451c4053dcebddde8d2a745c3e4d85ff
View
@@ -1 +1 @@
web: java $JVM_OPTS -jar target/uberjar/slemer-standalone.jar prod
web: java $JVM_OPTS -jar target/uberjar/slacky-standalone.jar prod
View
@@ -1,36 +1,18 @@
# slemer
# slacky
FIXME: description
Memes-as-a-service for Slack. Live instance at https://slacky-server.herokuapp.com/api.
## Installation
Download from http://example.com/FIXME.
All ready for Heroku deployment.
## Usage
To integrate with Slack:
- Create a [Slash command](https://my.slack.com/services/new/slash-commands/) for `/meme` to point to https://slacky-server.herokuapp.com:443/api/slack/meme. Set the usage hint to be `image url or search term | upper text | lower text`.
- Create an [Incoming webhook](https://my.slack.com/services/new/incoming-webhook/) and in your Heroku dashboard set config variable `WEBHOOK-URL` to be the webhook url provided by Slack
FIXME: explanation
Then simply visit a Slack channel and type /meme to get going!
$ java -jar slemer-0.1.0-standalone.jar [args]
## Options
FIXME: listing of options this app accepts.
## Examples
...
### Bugs
...
### Any Other Sections
### That You Think
### Might be Useful
## License
Copyright © 2015 FIXME
Copyright © 2015 oliyh
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.
View
@@ -10,7 +10,7 @@
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- rollover daily -->
<fileNamePattern>logs/slemer-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<fileNamePattern>logs/slacky-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy
class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- or whenever the file size reaches 64 MB -->
View
@@ -1,6 +1,6 @@
(ns dev
(:require [slemer.service :as service]
[slemer.server :as server]
(:require [slacky.service :as service]
[slacky.server :as server]
[io.pedestal.http :as bootstrap]
[clojure.tools.namespace.repl :refer [refresh]]))
View
@@ -1,6 +1,6 @@
(defproject slemer "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
(defproject slacky "0.1.0-SNAPSHOT"
:description "Memes-as-a-service"
:url "https://github.com/oliyh/slacky"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
@@ -15,11 +15,11 @@
[org.clojure/tools.logging "0.3.1"]
[clj-http "1.1.2"]
[cheshire "5.4.0"]]
:main ^:skip-aot slemer.server
:main ^:skip-aot slacky.server
:min-lein-version "2.0.0"
:target-path "target/%s"
:resource-paths ["config", "resources"]
:profiles {:uberjar {:aot :all}
:dev {:source-paths ["dev"]
:dependencies [[org.clojure/tools.namespace "0.2.11"]]}}
:uberjar-name "slemer-standalone.jar")
:uberjar-name "slacky-standalone.jar")
@@ -1,4 +1,4 @@
(ns slemer.meme
(ns slacky.meme
(:require [clj-http.client :as http]
[cheshire.core :as json]
[clojure.string :as string]
@@ -1,6 +1,6 @@
(ns slemer.server
(ns slacky.server
(:gen-class) ; for -main method in uberjar
(:require [slemer.service :as service]
(:require [slacky.service :as service]
[io.pedestal.http :as bootstrap]))
(defonce service-instance nil)
@@ -1,4 +1,4 @@
(ns slemer.service
(ns slacky.service
(:require [clojure.java.io :as io]
[io.pedestal.http :as bootstrap]
[io.pedestal.http.body-params :as body-params]
@@ -8,7 +8,7 @@
[ring.util.codec :as codec]
[ring.util.response :refer [response not-found created]]
[schema.core :as s]
[slemer
[slacky
[meme :as meme]
[slack :as slack]]
[clojure.tools.logging :as log]))
@@ -75,10 +75,10 @@
(s/with-fn-validation ;; Optional, but nice to have at compile time
(swagger/defroutes routes
{:info {:title "Slemer"
{:info {:title "Slacky"
:description "Memes and more for Slack"
:externalDocs {:description "Find out more"
:url "https://github.com/oliyh/slemer"}
:url "https://github.com/oliyh/slacky"}
:version "2.0"}
:tags [{:name "memes"
:description "All the memes!"}
@@ -1,4 +1,4 @@
(ns slemer.slack
(ns slacky.slack
(:require [clj-http.client :as http]
[cheshire.core :as json]
[clojure.tools.logging :as log]))

0 comments on commit 2633b0b

Please sign in to comment.