Skip to content

Commit

Permalink
Merge pull request #666 from Ikaros-521/owner
Browse files Browse the repository at this point in the history
弹幕模板新增{cur_time}参数,用于动态传入当前时间点,做特别应用
  • Loading branch information
Ikaros-521 committed Feb 28, 2024
2 parents 332d477 + a498e4a commit 276e84d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/my_handle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1823,7 +1823,8 @@ def comment_handle(self, data):
# 假设有多个未知变量,用户可以在此处定义动态变量
variables = {
'username': user_name,
'comment': content
'comment': content,
'cur_time': My_handle.common.get_bj_time(5),
}

comment_template_copywriting = self.config.get("comment_template", "copywriting")
Expand Down

0 comments on commit 276e84d

Please sign in to comment.