From c8f28679d10b3004fb7f04f54e625284c93e0c70 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Thu, 27 Jul 2017 21:14:04 -0400 Subject: plenty of updates for today --- commands.go | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) (limited to 'commands.go') 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") } -- cgit v1.3.1