Documentation ¶
Index ¶
- Variables
- type Bot
- func (b *Bot) ChangeGroupTimeZone(event tgbotapi.Update) (string, error)
- func (b *Bot) ChangeSubmissionDays(event tgbotapi.Update) (string, error)
- func (b *Bot) ChangeUserTimeZone(event tgbotapi.Update) (string, error)
- func (b *Bot) CheckNotificationThread(group *model.Group, t time.Time)
- func (b *Bot) EditDeadline(event tgbotapi.Update) (string, error)
- func (b *Bot) HandleChannelJoinEvent(event tgbotapi.Update) error
- func (b *Bot) HandleChannelLeftEvent(event tgbotapi.Update) error
- func (b *Bot) HandleCommand(event tgbotapi.Update) (err error)
- func (b *Bot) HandleMessageEvent(message *tgbotapi.Message) error
- func (b *Bot) Help(event tgbotapi.Update) (string, error)
- func (b *Bot) JoinStandupers(event tgbotapi.Update) (string, error)
- func (b *Bot) LeaveStandupers(event tgbotapi.Update) (string, error)
- func (b *Bot) NotifyGroup(group *model.Group, t time.Time)
- func (b *Bot) Show(event tgbotapi.Update) (string, error)
- func (b *Bot) Start() error
- func (b *Bot) StartWatchers()
- func (b *Bot) UpdateGroupLanguage(event tgbotapi.Update) (string, error)
- func (b *Bot) UpdateOnbordingMessage(event tgbotapi.Update) (string, error)
- func (b *Bot) WarnGroup(group *model.Group, t time.Time)
Constants ¶
This section is empty.
Variables ¶
var Test bool
Test helps to use some functions without need to use external APIs
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct {
// contains filtered or unexported fields
}
Bot structure
func (*Bot) ChangeGroupTimeZone ¶
ChangeGroupTimeZone modifies time zone of the group
func (*Bot) ChangeSubmissionDays ¶
ChangeSubmissionDays changes days on which interns should submit standups
func (*Bot) ChangeUserTimeZone ¶
ChangeUserTimeZone assign user a different time zone
func (*Bot) CheckNotificationThread ¶
CheckNotificationThread notify users
func (*Bot) EditDeadline ¶
EditDeadline modifies standup time
func (*Bot) HandleChannelJoinEvent ¶
HandleChannelJoinEvent function to add bot and standupers t0 channels
func (*Bot) HandleChannelLeftEvent ¶
HandleChannelLeftEvent function to remove bot and standupers from channels
func (*Bot) HandleCommand ¶
HandleCommand handles imcomming commands
func (*Bot) HandleMessageEvent ¶
HandleMessageEvent function to analyze and save standups
func (*Bot) JoinStandupers ¶
JoinStandupers assign user a standuper role
func (*Bot) LeaveStandupers ¶
LeaveStandupers standupers
func (*Bot) NotifyGroup ¶
NotifyGroup launches go routines that notify standupers about upcoming deadlines
func (*Bot) StartWatchers ¶
func (b *Bot) StartWatchers()
StartWatchers looks for new gropus from the channel and start watching it
func (*Bot) UpdateGroupLanguage ¶
UpdateGroupLanguage updates primary language for the group
func (*Bot) UpdateOnbordingMessage ¶
UpdateOnbordingMessage updates welcoming message for the group