Compare commits

...
2 Commits
Author SHA1 Message Date
shanmite b80c65558d docs: 更新CHANGELOG 2022-02-04 10:20:22 +08:00
shanmite f569207dc5 fix: 低版本node(< v15)不支持replaceAll
Nodejs v15 has V8 8.6 and thus that's the
 first nodejs version where you can use .replaceAll()
2022-02-04 10:18:20 +08:00
3 changed files with 8 additions and 3 deletions
+5
View File
@@ -1,5 +1,10 @@
<!-- markdownlint-disable MD036 MD024-->
# CHANGELOG
## 主要变化(2.4.10)
* f569207 fix: 低版本node(< v15)不支持replaceAll
_如果之前版本小于上一版本,请查看[CHANGELOG](CHANGELOG.md)变更说明_
## 主要变化(2.4.9)
* 2fbd292 feat: 自动评语中可用up主昵称`${uname}`变量(#118)
+2 -2
View File
@@ -421,7 +421,7 @@ class Monitor extends Searcher {
let
/**转发评语 */
RandomStr = getRandomOne(relays)
.replaceAll('${uname}', uname_map[real_uid] || uname),
.replace(/\$\{uname\}/g, uname_map[real_uid] || uname),
/**控制字段 */
new_ctrl = [];
@@ -481,7 +481,7 @@ class Monitor extends Searcher {
if (isSendChat) {
onelotteryinfo.rid = rid
onelotteryinfo.chat = getRandomOne(chats)
.replaceAll('${uname}', uname_map[real_uid] || uname)
.replace(/\$\{uname\}/g, uname_map[real_uid] || uname)
}
alllotteryinfo.push(onelotteryinfo);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "lottery-auto-script",
"version": "2.4.9",
"version": "2.4.10",
"description": "自动参与B站动态抽奖",
"main": "main.js",
"scripts": {