docs: 更新CHANGELOG
Some checks failed
Build and push Docker images / docker (push) Has been cancelled
Mirror and run GitLab CI / build (push) Has been cancelled
Publishing to NPM / publish (push) Has been cancelled
Package Node.js project into an executable / node${{ matrix.nodev }}-${{ matrix.platform }}-x64 (18, linux) (push) Has been cancelled
Package Node.js project into an executable / node${{ matrix.nodev }}-${{ matrix.platform }}-x64 (18, macos) (push) Has been cancelled
Package Node.js project into an executable / node${{ matrix.nodev }}-${{ matrix.platform }}-x64 (18, win) (push) Has been cancelled
Package Node.js project into an executable / node18-${{ matrix.platform }}-arm64 (alpine) (push) Has been cancelled
Package Node.js project into an executable / node18-${{ matrix.platform }}-arm64 (linux) (push) Has been cancelled
Package Node.js project into an executable / node18-${{ matrix.platform }}-arm64 (linuxstatic) (push) Has been cancelled

This commit is contained in:
shanmite 2025-08-08 15:17:14 +08:00
parent b74bb02c65
commit adbfb6bb38
5 changed files with 11 additions and 8 deletions

View File

@ -1,5 +1,10 @@
<!-- markdownlint-disable MD036 MD024-->
# CHANGELOG
## 主要变化(2.10.0)
* b74bb02 feat: ai 评论 (#462)
_如果之前版本小于上一版本,请查看[CHANGELOG](https://github.com/shanmiteko/LotteryAutoScript/blob/main/CHANGELOG.md)变更说明_
## 主要变化(2.9.8)
* c85c910 doc: 图片链接换源
* c4d37ed fix: Dockerfile.pkg-arm64换源

View File

@ -110,10 +110,9 @@ module.exports = Object.freeze({
* ai相关参数
*/
ai_parm: {
//硅基流动apikey
//[硅基流动](https://siliconflow.cn/) apikey
SILICON_FLOW_API_KEY:'',
//提示词
PROMPT:''
}
});

View File

@ -1,4 +1,4 @@
const { log, hasEnv, shuffle, getRandomOne,getAiContent, delay, try_for_each, retryfn, appendLotteryInfoFile } = require('../utils');
const { log, hasEnv, shuffle, getRandomOne, getAiContent, delay, try_for_each, retryfn, appendLotteryInfoFile } = require('../utils');
const { send } = require('../net/http');
const bili = require('../net/bili');
const { sendNotify } = require('../helper/notify');
@ -281,7 +281,7 @@ class Monitor extends Searcher {
reserve_lottery_wait, sneaktower, key_words,
model, chatmodel, chat: chats, relay: relays,
block_dynamic_type, max_create_time, is_imitator,
only_followed, at_users, blockword, blacklist,use_ai_comments
only_followed, at_users, blockword, blacklist, use_ai_comments
} = config,
now_ts = Date.now() / 1000;
@ -530,8 +530,7 @@ class Monitor extends Searcher {
if (use_ai_comments) {
try {
log.info('开始获取Ai评论', `(https://t.bilibili.com/${dyid})`);
onelotteryinfo.chat = await getAiContent(lottery_info.des);
//(getRandomOne(chats) || '!!!').replace(/\$\{uname\}/g, uname);
onelotteryinfo.chat = await getAiContent(lottery_info.des) || '!!!';
log.info('Ai评论内容', `${onelotteryinfo.chat}`);
} catch (e) {
log.error('获取AI评论失败使用随机评论', e);

View File

@ -1,6 +1,6 @@
{
"name": "lottery-auto-script",
"version": "2.9.8",
"version": "2.10.0",
"description": "自动参与B站动态抽奖",
"main": "main.js",
"scripts": {

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# version: <major.minor.patch>
level=patch
level=minor
npm version $level \
--no-commit-hooks \