aboutsummaryrefslogtreecommitdiff
path: root/commands.go
diff options
context:
space:
mode:
authorNathan Perry <avaglir@gmail.com>2017-07-27 21:14:04 -0400
committerNathan Perry <avaglir@gmail.com>2017-07-27 21:14:04 -0400
commitc8f28679d10b3004fb7f04f54e625284c93e0c70 (patch)
tree36834e113aa2376989b5d78c383a0ded0136ed8c /commands.go
parentc6e5779f22b18b971f82ddd2c5de81015ac9740c (diff)
plenty of updates for today
Diffstat (limited to 'commands.go')
-rw-r--r--commands.go38
1 files changed, 36 insertions, 2 deletions
diff --git a/commands.go b/commands.go
index d3f5684..525c915 100644
--- a/commands.go
+++ b/commands.go
@@ -1,7 +1,41 @@
package thulani
-import "github.com/bwmarrin/discordgo"
+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 printHelp(s *discordgo.Session, create *discordgo.MessageCreate) {
+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")
}