Skip to content

Commit 458bb61

Browse files
committed
add solicit command
1 parent 1476fe2 commit 458bb61

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

lib/plugins/standup/standup.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,24 @@ func init() {
5656
"",
5757
shareStandupNotesRequest,
5858
)
59+
// bot.RegisterPassiveCommand("standup", log)
60+
bot.RegisterCommand(
61+
"solicit",
62+
"Solicit participants for their standup notes",
63+
"",
64+
solicitStandupNotesRequest,
65+
)
5966

6067
}
68+
6169
func solicitStandupNotes(channel string) (string, error) {
6270
return solicitStandupMessage, nil
6371
}
6472

73+
func solicitStandupNotesRequest(command *bot.Cmd) (msg string, err error) {
74+
return solicitStandupNotes(command.Channel)
75+
}
76+
6577
func shareStandupNotesRequest(command *bot.Cmd) (msg string, err error) {
6678
return shareStandupNotes(command.Channel)
6779
}

0 commit comments

Comments
 (0)