Skip to content

Commit

Permalink
Colorize edits and reactions
Browse files Browse the repository at this point in the history
  • Loading branch information
immae committed May 9, 2024
1 parent 66ece0e commit fd971be
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion wee_slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -5165,7 +5165,12 @@ def create_reaction_string(reaction, myidentifier):
users = "({})".format(", ".join(nicks + nicks_extra))
else:
users = reaction["count"]
reaction_string = ":{}:{}".format(reaction["name"], users)
if myidentifier in reaction["users"]:
reaction_color = config.color_reaction_suffix_added_by_you
else:
reaction_color = config.color_reaction_suffix
reaction_emoji = colorize_string(reaction_color, ':{}:'.format(reaction['name']), reset_color=reaction_color)
reaction_string = '{}{}'.format(reaction_emoji, users)
if myidentifier in reaction["users"]:
return colorize_string(
config.color_reaction_suffix_added_by_you,
Expand Down

0 comments on commit fd971be

Please sign in to comment.