Skip to content

Instantly share code, notes, and snippets.

@ldunn
Created June 25, 2010 04:53
Show Gist options
  • Select an option

  • Save ldunn/452426 to your computer and use it in GitHub Desktop.

Select an option

Save ldunn/452426 to your computer and use it in GitHub Desktop.
(defun command-hook (message)
(handler-case
(let ((connection (connection message)))
(describe message)
(privmsg connection "#bots" (arguments message))
(if (string= (second (arguments message)) "roar")
(privmsg connection "#bots" "ohi!")))
(error (condition) (describe condition))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment