Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
imoki committed Aug 6, 2023
1 parent 7f7fe4b commit 3656690
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
- 2023-08-06
* 增添【像素蛋糕】脚本
* 取消【什么值得买】脚本的第二次抽奖功能
* 聚合脚本中增添Discord推送
- 2023-08-05
* 增添【在线工具】脚本
- 2023-07-31
Expand All @@ -106,7 +107,8 @@

## 贡献者
<a href="https://github.com/jarryyen">@jarryyen</a>、
<a href="https://github.com/darkbfly">@darkbfly</a>
<a href="https://github.com/darkbfly">@darkbfly</a>、
<a href="https://githubfast.com/SunWuyuan">@孙悟元</a>

## 代码参考
<a href="https://github.com/HeiDaotu/WFRobertQL">WFRobertQL</a></br>
Expand Down
9 changes: 9 additions & 0 deletions polymerization/cake.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ var jsonPush = [
{ name: "ServerChan", key: "xxxxxx", flag: "0" },
{ name: "email", key: "xxxxxx", flag: "0" },
{ name: "dingtalk", key: "xxxxxx", flag: "0" },
{ name: "discord", key: "xxxxxx", flag: "0" },
]; // 推送数据,flag=1则推送
var jsonEmail = {
server: "",
Expand Down Expand Up @@ -244,6 +245,14 @@ function dingtalk(message, key) {
sleep(5000);
}

// 推送Discord机器人
function discord(message, key) {
let url = key;
let resp = HTTP.post(url, { content: message });
//console.log(resp.text())
sleep(5000);
}

function sleep(d) {
for (var t = Date.now(); Date.now() - t <= d; );
}
Expand Down

0 comments on commit 3656690

Please sign in to comment.