aboutsummaryrefslogtreecommitdiff
path: root/commands.go
diff options
context:
space:
mode:
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")
}