Skip to content

Commit

Permalink
Update SetUserCustomStatus function to include "now coding" message
Browse files Browse the repository at this point in the history
  • Loading branch information
walnuts1018 committed Jan 18, 2024
1 parent 5b900be commit 6697dee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion infra/slack/slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ func (c *client) SetUserCustomStatus(emoji string, text string) error {
if !(strings.HasPrefix(emoji, ":") && strings.HasSuffix(emoji, ":")) {
emoji = ":" + emoji + ":"
}
err := c.slackClient.SetUserCustomStatus(text, emoji, 0)

err := c.slackClient.SetUserCustomStatus(fmt.Sprintf("now coding: %v", text), emoji, 0)
if err != nil {
return fmt.Errorf("error setting status: %w", err)
}
Expand Down

0 comments on commit 6697dee

Please sign in to comment.