setup

package
v0.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskIfManager

func AskIfManager(s *common.Slack, channelid, userid string) error

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

func AskTimeStandup(s *common.Slack, channelid, userid string) error

AskTimeStandup Asks what time the standup should happen

func AskWhichChannelStandup

func AskWhichChannelStandup(s *common.Slack, channelid, userid string) error

AskWhichChannelStandup Asks in which channel to post the standup results

func AskWhoIsManager

func AskWhoIsManager(s *common.Slack, channelid, userid string) error

AskWhoIsManager Ask who is the user manager

func GetStandupChannelFromManager

func GetStandupChannelFromManager(managerid string) (channelStandup string)

GetStandupChannelFromManager Gets a standup channel id based on the manager standup channel id selected

func GetStandupTimeFromManager

func GetStandupTimeFromManager(managerid string) (timeStandup string)

GetStandupTimeFromManager Gets a standup time based on the manager standup time selected

func InitBot

func InitBot(userid, email, fullname, displayname string) error

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

func InitManager(userid, fullname, managerid, managername string) error

InitManager Add the person select previously in askWhoIsManager to the user profile

func InsertChannelStandup

func InsertChannelStandup(userid, fullname, channel string) error

InsertChannelStandup Inserts in the database the result of askWhichChannelStandup

func InsertTimeStandup

func InsertTimeStandup(userid, fullname, time string) error

InsertTimeStandup Insert in the database the result of askTimeStandup

func IsManager

func IsManager(userid, fullname, ismanager string) error

IsManager Setups the user as a manager or not in the database

func RemoveBot

func RemoveBot(userid, fullname string) error

RemoveBot remove the user from the bot/database

func UpdateChannelStandup

func UpdateChannelStandup(managerid, userid, channel string) error

UpdateChannelStandup Updates the standup channel of a new user based on the channel of the manager

func UpdateTimeStandup

func UpdateTimeStandup(managerid, userid, time string) error

UpdateTimeStandup Updates the standup time of a new user based on the time of the manager

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL