koishi-plugin-bns-blacklist 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +3 -3
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -184,8 +184,8 @@ ${itemsHtml}
184
184
  // ─── Data Scraping ─────────────────────────────────────────
185
185
  async function scrapeSheet(page, url) {
186
186
  await page.goto(url, { waitUntil: 'networkidle2', timeout: 60000 });
187
- // Wait for the sheet to render - look for the sheet container
188
- await page.waitForTimeout(5000);
187
+ // Wait for the sheet to render
188
+ await new Promise(r => setTimeout(r, 5000));
189
189
  // Try to extract data from Tencent Docs rendered cells
190
190
  // Approach: use the Tencent Docs internal data API via JS
191
191
  const data = await page.evaluate(() => {
@@ -375,7 +375,7 @@ function apply(ctx, config) {
375
375
  try {
376
376
  await page.setViewport({ width: 1500, height: 800 });
377
377
  await page.setContent(html, { waitUntil: 'networkidle2', timeout: 30000 });
378
- await page.waitForTimeout(2000);
378
+ await new Promise(r => setTimeout(r, 2000));
379
379
  // Get the card element's bounding box and screenshot it
380
380
  const card = await page.$('.cyber-card');
381
381
  if (card) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koishi-plugin-bns-blacklist",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "剑灵怀旧服副本黑名单查询 - 从腾讯文档实时拉取数据,输入角色名即可生成黑名单截图",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",