Browse Source

fixed formatting to make more pretty

master
wes 13 years ago
parent
commit
e01e5db4e9
  1. 6
      commands.rkt

6
commands.rkt

@ -39,8 +39,12 @@
(match (allowed?) (match (allowed?)
[#f "Please try again in a few minutes"] [#f "Please try again in a few minutes"]
[_ (match (parse-exclamation command) [_ (match (parse-exclamation command)
[(list-rest "set" args) (submit-question (caar args) (string-join (cdar args) " ")) [(list-rest "set" args) (match args
; this part checks if the right number of arguments are there
[(list (list name) (list-rest _ text))
(submit-question name (string-join text " "))
"Done!"] "Done!"]
[_ 'nil])]
[(list-rest "alias" (list args)) (make-alias (first args) (second args))] [(list-rest "alias" (list args)) (make-alias (first args) (second args))]
[(list-rest name _) (get-question name)] [(list-rest name _) (get-question name)]
[_ 'nil])])) [_ 'nil])]))

Loading…
Cancel
Save