func (r bot) DeferredAction(p *robots.Payload) { ch := utils.NewCmdHandler(p, r.handler, "project") ch.Handle("set", r.set) ch.Handle("list", r.list) ch.HandleDefault(r.list) ch.Process(p.Text) }
func (r bot) DeferredAction(p *robots.Payload) { ch := utils.NewCmdHandler(p, r.handler, "vacation") ch.Handle("set", r.set) ch.Handle("list", r.list) ch.Handle("whoisout", r.whoIsOut) ch.Process(p.Text) }
func (r bot) DeferredAction(p *robots.Payload) { ch := utils.NewCmdHandler(p, r.handler, "store") ch.HandleDefault(r.list) ch.Handle("list", r.list) ch.Handle("set", r.set) ch.HandleMany([]string{"rem", "del", "remove", "delete"}, r.remove) ch.Process(p.Text) }
func (r bot) DeferredAction(p *robots.Payload) { ch := utils.NewCmdHandler(p, r.handler, "gh") ch.Handle("auth", r.auth) ch.Handle("pullrequests", r.pullRequests) ch.Handle("prs", r.pullRequests) ch.Handle("teams", r.teams) ch.Handle("teaminfo", r.teamInfo) ch.Handle("addtoteam", r.addToTeam) ch.Process(p.Text) }
func (r bot) DeferredAction(p *robots.Payload) { ch := utils.NewCmdHandler(p, r.handler, "pvt") ch.Handle("projects", r.sendProjects) ch.Handle("stories", r.sendStories) ch.Handle("mystories", r.sendMyStories) ch.Handle("auth", r.sendAuth) ch.Handle("users", r.users) cmds := []string{"start", "unstart", "finish", "accept", "reject", "deliver"} ch.HandleMany(cmds, r.setStoryState) ch.Process(p.Text) }
func (r bot) DeferredAction(p *robots.Payload) { ch := utils.NewCmdHandler(p, r.handler, "project") ch.Handle("status", r.status) ch.Handle("start", r.startSession) ch.Handle("session", r.startSession) ch.Handle("story", r.startStory) ch.Handle("stories", r.addStories) ch.Handle("s", r.startStory) ch.Handle("next", r.nextStory) ch.Handle("n", r.nextStory) ch.Handle("vote", r.vote) ch.Handle("v", r.vote) ch.Handle("reveal", r.revealVotes) ch.Handle("estimate", r.setEstimation) ch.Handle("set", r.setEstimation) ch.Handle("track", r.setEstimation) ch.Handle("finish", r.endSession) ch.Process(p.Text) }
func (r bot) DeferredAction(p *robots.Payload) { ch := utils.NewCmdHandler(p, r.handler, "project") ch.Handle("list", r.list) ch.Handle("link", r.link) ch.Handle("stories", r.stories) ch.Handle("mystories", r.myStories) ch.Handle("setsprint", r.setSprint) ch.Handle("addsprint", r.addSprint) ch.Handle("setchannel", r.setChannel) ch.Handle("addstory", r.addStory) ch.Handle("start", r.startTask) ch.Handle("create", r.create) ch.Handle("rename", r.rename) ch.Handle("members", r.members) ch.Handle("addmember", r.addmember) ch.Handle("unassigned", r.unassigned) ch.Handle("assign", r.assign) ch.Handle("estimate", r.estimate) ch.Handle("addtime", r.addTime) ch.HandleDefault(r.list) ch.Process(p.Text) }