aboutsummaryrefslogtreecommitdiff
path: root/commands.go
blob: 0157adbb02d4ffdb8c7be24648d6bee787581a7d (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
42
43
package thulani

import "github.com/mammothbane/thulani-go/downloader"

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")
}