Created
September 12, 2014 06:15
-
-
Save boxp/c0b6f3ce88f5bd57d035 to your computer and use it in GitHub Desktop.
update_name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn update-name | |
[status] | |
(let [n (.indexOf @tweets status) | |
new-name (-> (re-seq #"(.*)\(@If_I_were_boxp\)" (. status getText)) | |
first | |
second)] | |
(if new-name | |
(do | |
(update-profile :tw twitter :new-name new-name) | |
(reply n (str new-name "に改名しました")))) | |
status)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment