Skip to content

Instantly share code, notes, and snippets.

@boxp
Created September 12, 2014 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boxp/c0b6f3ce88f5bd57d035 to your computer and use it in GitHub Desktop.
Save boxp/c0b6f3ce88f5bd57d035 to your computer and use it in GitHub Desktop.
update_name
(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