Add new elif
clause to compose_message
for LABEL_UPDATED
event.
#10
Labels
elif
clause to compose_message
for LABEL_UPDATED
event.
#10
This issue depends upon the issues #7 and #8 and thus can be only attempted after those issues are closed.
In this issue, you'll add an
elif
clause to thecompose_message
function of theMessenger
class present in the filebot/slack/messenger.py
The
elif
clause will check if theevent.type
is equal toEventType.LABEL_UPDATED
. If that is true, you should setmessage
to"USER ACTION the label LABEL"
, where USER should beevent.user
, ACTION should beevent.label.action
and LABEL should beevent.label
.You should use f-strings as seen in other clauses already present in the function.
This issue is a part of a bigger issue (#6).
Leave a comment if you have any doubts.
The text was updated successfully, but these errors were encountered: