blob: 2de89e4a710f247371633c6157add1a1853e3189 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
(defmacro send [data]
`(self.client.send ~data))
(defmacro inp [action]
`(send ["input" ~action]))
(defmacro move [dir]
`(inp ["move" ~dir]))
(defmacro say [text]
`(inp ["say" ~text]))
(defmacro log [text]
`(self.client.log ~text))
(defmacro chat [text]
`(send ["chat" ~text]))
(defmacro doall [actions]
`(for [action ~actions] (action)))
(defmacro log [text]
`(self.client.log ~text))
|