mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-06-04 21:01:17 +08:00
24 lines
721 B
JavaScript
24 lines
721 B
JavaScript
const assert = require('assert');
|
|
const bili_client = require("../lib/net/bili");
|
|
const util = require('./util');
|
|
const { parseDynamicCard } = require('../lib/core/searcher');
|
|
|
|
(async () => {
|
|
await util.par_run([], [
|
|
// 0
|
|
async () => {
|
|
assert.notEqual(await bili_client.getMyinfo(), null);
|
|
|
|
const rid = parseDynamicCard(await bili_client.getOneDynamicByDyid("551416252543796684")).rid_str;
|
|
|
|
for (let index = 0; index < 100; index++) {
|
|
console.log(index);
|
|
await bili_client.sendChatWithOcr(
|
|
rid,
|
|
Date.now().toString(),
|
|
17,
|
|
)
|
|
}
|
|
},]);
|
|
})()
|