Documentation ¶
Index ¶
- Constants
- func GetMessage(slackClient *slack.Client, channelId string, messageId string) (*slack.GetConversationHistoryResponse, error)
- func GetPrecedingMessage(slackClient *slack.Client, channelId string, fromMessageId string) (*slack.GetConversationHistoryResponse, error)
- func GiveCheeseTouch(userId string)
- func HandleInnerEvent(slackClient *slack.Client, innerEvent *slackevents.EventsAPIInnerEvent)
- func HasCheese(message string) bool
- func HasCheeseTouch(userId string) bool
- func HasCheeseTouchStarted() bool
- func HasFingersCrossed(message string) bool
- func HasIntentToPass(message string) bool
- func IsPublicChannel(channelId string) bool
- func StartServer(config *Config)
- type Config
Constants ¶
View Source
const ( FingersCrossedMessage string = "Looks like <@%s> had their fingers crossed. Too bad!" PassErrorMessage string = "I couldn’t check if the Cheese Touch could be passed to the user above you. Please try again later." PassSuccessMessage string = CheeseEmoji + " <@%s> passed the Cheese touch to <@%s>!" StartedMessage string = ":eyes: :rotating_light: *<@%s>* just touched some terribly moldy cheese, starting the Cheese Touch! To pass it on to someone else, reply with either " + PassEmoji1 + " or a " + PassEmoji2 + " under someone who doesn’t have their fingers crossed (a " + SafeEmoji + " in their message)." )
Raw format strings for messages to use with sprintf.
View Source
const ( CheeseEmoji = ":cheese_wedge:" PassEmoji1 = ":point_up:" PassEmoji2 = ":point_up_2:" SafeEmoji = ":crossed_fingers:" )
Variables ¶
This section is empty.
Functions ¶
func GetMessage ¶
func GetPrecedingMessage ¶
func GiveCheeseTouch ¶
func GiveCheeseTouch(userId string)
func HandleInnerEvent ¶
func HandleInnerEvent(slackClient *slack.Client, innerEvent *slackevents.EventsAPIInnerEvent)
func HasCheeseTouch ¶
func HasCheeseTouchStarted ¶
func HasCheeseTouchStarted() bool
func HasFingersCrossed ¶
func HasIntentToPass ¶
func IsPublicChannel ¶
func StartServer ¶
func StartServer(config *Config)
Types ¶
Click to show internal directories.
Click to hide internal directories.