trim prefix if supplied

feature/basic_auth
Karolis Rusenas 2019-04-16 22:51:27 +01:00
parent 6ce45cdf57
commit cf6f442106
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ func (b *Bot) Configure(approvalsRespCh chan *bot.ApprovalResponse, botMessagesC
b.approvalsChannel = "general"
if channel := os.Getenv(constants.EnvSlackApprovalsChannel); channel != "" {
b.approvalsChannel = channel
b.approvalsChannel = strings.TrimPrefix(channel, "#")
}
b.slackClient = client