Documentation ¶
Index ¶
- Variables
- func Choice(option []string) string
- func FmtDuration(d time.Duration) string
- func FortyTwoMiddleware(fn func(string, *Message) bool) func(string, *Message) bool
- func GetLogin(option string, event *Message) (string, bool)
- func HandleRouletteStat(event *Message)
- func IndexOf(word string, data []string) int
- func IntraLogtime(user string, rangeBegin time.Time, rangeEnd time.Time, client *api42.Client42) time.Duration
- func Logtime(user string, rangeBegin time.Time, rangeEnd time.Time, client *api42.Client42) time.Duration
- func PostMsg(event *Message, options ...slack.MsgOption)
- func PrettyDurationPrinting(d time.Duration) string
- type Message
- type Music
- type React
Constants ¶
This section is empty.
Variables ¶
View Source
var SlackParams = slack.PostMessageParameters{ UnfurlMedia: true, UnfurlLinks: true, Markdown: true, }
Functions ¶
func FmtDuration ¶
func FortyTwoMiddleware ¶
FortyTwoMiddleware is a middleware that makes sure that the api client for the fortytwo api is properly created
func HandleRouletteStat ¶
func HandleRouletteStat(event *Message)
func IntraLogtime ¶
func PrettyDurationPrinting ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.