blob: 525c915b8bb1afef0adab7166efcb34c28a59a6c (
plain) (
blame)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
package thulani
var cmdMap = map[string]func(*messageCtx){
"help": printHelp,
"skip": commandNotImplemented,
"pause": commandNotImplemented,
"resume": commandNotImplemented,
"sudoku": commandNotImplemented,
"die": commandNotImplemented,
"list": commandNotImplemented,
"queue": commandNotImplemented,
}
func printHelp(c *messageCtx) {
c.sendMessage(help, c.Tts)
}
func commandNotImplemented(c *messageCtx) {
log.Errorf("%q not implemented", c.Command)
c.sendMessage("not implemented", c.Tts)
}
func skip(c *messageCtx) {
log.Error("skip not implemented")
}
func resume(c *messageCtx) {
log.Error("skip not implemented")
}
func pause(c *messageCtx) {
log.Error("skip not implemented")
}
func stop(c *messageCtx) {
log.Error("skip not implemented")
}
func list(c *messageCtx) {
log.Error("skip not implemented")
}
|