Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ResponseUsername is the username which will be used to post the slack command response ResponseUsername = "Matterpoll" // ResponseIconURL is the profile picture which will be used to post the slack command response ResponseIconURL = "https://www.mattermost.org/wp-content/uploads/2016/04/icon.png" )
View Source
const ( //ErrorTextWrongFormat is an error message and is used, if the message isn`t formated correct ErrorTextWrongFormat = `The message format is wrong. Try this instead: ` + backTick + `/poll \"What do you gys wanna grab for lunch?\" :pizza: :sushi:` + backTick // ErrorTokenMissmatch is an error message and is used, if the token comparison fails ErrorTokenMissmatch = `An error occurred. Ask your administrator to check the Matterpoll config settings.` // ErrorWrongLength is an error message and is used, if the channel id or the token have a wrong length ErrorWrongLength = `An error occurred. Try the same command again. If it fails again, contact your administrator.` )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct { Host string `json:"host"` Listen string `json:"listen"` Token string `json:"token"` User User `json:"user"` }
Conf represents the login credentials of a mattermost user
Click to show internal directories.
Click to hide internal directories.