Add new elif
clause to compose_message
for WIKI_UPDATED
event.
#5
Labels
elif
clause to compose_message
for WIKI_UPDATED
event.
#5
This issue depends upon the issues #2 and #3 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.WIKI_UPDATED
. If that is true, there should be two cases:len(event.wiki_pages)
is equal to1
, the message should be"USER added/update the Wiki page PAGE"
, where USER should beevent.user
and PAGE should beevent.wiki_pages[0]
."USER added/updated NUMBER Wiki pages."
where USER should beevent.user
and NUMBER should belen(event.wiki_pages)
.You should use f-strings as seen in other clauses already present in the function.
This issue is a part of a bigger issue (#1).
Leave a comment if you have any doubts.
The text was updated successfully, but these errors were encountered: