Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zk committed Dec 14, 2011
1 parent 5c7fa16 commit a24b641
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,13 @@ Add some logic, all this bot does is respond back to the sender with his/her mes
from-user (:from-name message)]
(str "Hi " from-user ", you sent me '" body "'")))


;; reload-helper allows you see changes to handle-message without restarting the bot.
(defn reload-helper [message]
(handle-message message))
<br />

Define the bot
Define the bot:

(defonce my-bot (xmpp/start-bot connect-info (var handle-message)))

(defonce my-bot (xmpp/start-bot connect-info reload-helper))
<br />
<br />

Stop the bot

Expand Down

0 comments on commit a24b641

Please sign in to comment.