Documentation ¶
Index ¶
- func AskIfManager(s *common.Slack, channelid, userid string) error
- func AskRemove(s *common.Slack, ev *slack.MessageEvent) error
- func AskSetup(s *common.Slack, ev *slack.MessageEvent) error
- func AskTimeStandup(s *common.Slack, channelid, userid string) error
- func AskWhichChannelStandup(s *common.Slack, channelid, userid string) error
- func AskWhoIsManager(s *common.Slack, channelid, userid string) error
- func GetStandupChannelFromManager(managerid string) (channelStandup string)
- func GetStandupTimeFromManager(managerid string) (timeStandup string)
- func InitBot(userid, email, fullname, displayname string) error
- func InitManager(userid, fullname, managerid, managername string) error
- func InsertChannelStandup(userid, fullname, channel string) error
- func InsertTimeStandup(userid, fullname, time string) error
- func IsManager(userid, fullname, ismanager string) error
- func RemoveBot(userid, fullname string) error
- func UpdateChannelStandup(managerid, userid, channel string) error
- func UpdateTimeStandup(managerid, userid, time string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskIfManager ¶
AskIfManager Asks if the user if a manager
func AskRemove ¶
func AskRemove(s *common.Slack, ev *slack.MessageEvent) error
AskRemove Asks if we want to remove our user from the bot This will delete the user from the datatbase
func AskSetup ¶
func AskSetup(s *common.Slack, ev *slack.MessageEvent) error
AskSetup Asks the first question on the user init process At this point the user can still cancel the stup
func AskTimeStandup ¶
AskTimeStandup Asks what time the standup should happen
func AskWhichChannelStandup ¶
AskWhichChannelStandup Asks in which channel to post the standup results
func AskWhoIsManager ¶
AskWhoIsManager Ask who is the user manager
func GetStandupChannelFromManager ¶
GetStandupChannelFromManager Gets a standup channel id based on the manager standup channel id selected
func GetStandupTimeFromManager ¶
GetStandupTimeFromManager Gets a standup time based on the manager standup time selected
func InitBot ¶
InitBot is the first step of using this bot. It will insert the user informations inside the database allowing us to use them
func InitManager ¶
InitManager Add the person select previously in askWhoIsManager to the user profile
func InsertChannelStandup ¶
InsertChannelStandup Inserts in the database the result of askWhichChannelStandup
func InsertTimeStandup ¶
InsertTimeStandup Insert in the database the result of askTimeStandup
func UpdateChannelStandup ¶
UpdateChannelStandup Updates the standup channel of a new user based on the channel of the manager
func UpdateTimeStandup ¶
UpdateTimeStandup Updates the standup time of a new user based on the time of the manager
Types ¶
This section is empty.