Skip to content

Commit c74e24b

Browse files
committed
Give priority to channel comments
1 parent 8fd29de commit c74e24b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

youbot/youtube_utils/youtube_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def get_next_template_comment(self, channel_id: str, commented_comments: Dict) -
346346
available_comments = self.template_comments['default'].copy()
347347
# Build the comments pool
348348
if channel_id in self.template_comments:
349-
available_comments += self.template_comments[channel_id]
349+
available_comments = self.template_comments[channel_id] + available_comments
350350
# Extract unique comments commented
351351
unique_com_coms = set(data['comment'] for data in commented_comments)
352352
new_comments = set(available_comments) - unique_com_coms

0 commit comments

Comments
 (0)