Skip to content

Instantly share code, notes, and snippets.

@bavardage
Created July 1, 2009 21:48
Show Gist options
  • Save bavardage/139091 to your computer and use it in GitHub Desktop.
Save bavardage/139091 to your computer and use it in GitHub Desktop.
(add-command "leave-memo" (lambda (bot args sender channel)
(multiple-value-bind (recipient memo)
(split "\\s+" args :limit 2)
(progn
(add-memo recipient memo)
(send-msg bot channel (format nil "tada! Added memo for ~A" recipient))))))
(add-command "get-memo" (lambda (bot args sender channel)
(send-msg bot channel (format nil "memo for ~A: ~A" args (get-memo args)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment