Skip to content

Commit 9d2f458

Browse files
committed
优化:当 Discord 服务器任务全部设置为'false'时不再弹出相关提醒
1 parent f7a55ce commit 9d2f458

16 files changed

+51
-27
lines changed

.github/workflows/Release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
uses: softprops/action-gh-release@v1
2222
with:
2323
prerelease: false
24-
tag_name: v4.2.29
25-
name: 4.2.29
26-
body: '- 优化:Gleam任务识别优化'
24+
tag_name: v4.2.30
25+
name: 4.2.30
26+
body: '- 优化:当 Discord 服务器任务全部设置为''false''时不再弹出相关提醒'
2727
files: |-
2828
dist/auto-task-v4-for-giveawaysu.user.js
2929
dist/auto-task-v4.compatibility.user.js

dist/auto-task-v4-for-giveawaysu.all.user.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auto-task-v4-for-giveawaysu.user.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auto-task-v4.all.user.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name auto-task-v4
33
// @namespace auto-task-v4
4-
// @version 4.2.29
4+
// @version 4.2.30
55
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
66
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
77
// @author HCLonely
@@ -1844,6 +1844,10 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
18441844
return 'skip';
18451845
}
18461846
}
1847+
if (!globalOptions.doTask.discord.servers && !globalOptions.undoTask.discord.servers) {
1848+
this.#initialized = false;
1849+
return 'skip';
1850+
}
18471851
if (this.#initialized) {
18481852
return true;
18491853
}

dist/auto-task-v4.compatibility.all.user.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auto-task-v4.compatibility.user.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auto-task-v4.user.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name auto-task-v4
33
// @namespace auto-task-v4
4-
// @version 4.2.29
4+
// @version 4.2.30
55
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
66
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
77
// @author HCLonely
@@ -1825,6 +1825,10 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
18251825
return 'skip';
18261826
}
18271827
}
1828+
if (!globalOptions.doTask.discord.servers && !globalOptions.undoTask.discord.servers) {
1829+
this.#initialized = false;
1830+
return 'skip';
1831+
}
18281832
if (this.#initialized) {
18291833
return true;
18301834
}

doc/docs/logs/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ lang: zh-CN
55

66
## V4.2
77

8+
### V4.2.30
9+
10+
[Release](https://github.com/HCLonely/auto-task-v4/releases/tag/v4.2.30)
11+
12+
- 优化:当 Discord 服务器任务全部设置为'false'时不再弹出相关提醒
13+
814
### V4.2.29
915

1016
[Release](https://github.com/HCLonely/auto-task-v4/releases/tag/v4.2.29)

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"gs": "webpack --config webpack.giveawaysu.config.js",
1313
"dev": "webpack --config webpack.dev.config.js",
1414
"analyze": "webpack-bundle-analyzer ./dist/stats.json",
15-
"build": "set NODE_OPTIONS=--openssl-legacy-provider && webpack --config webpack.config.js && webpack --config webpack.compatibility.config.js && webpack --config webpack.giveawaysu.config.js && node build-all-static.js && node copy.js && node doc-sync.js && node release.js"
15+
"build": "set NODE_OPTIONS=--openssl-legacy-provider && webpack --config webpack.config.js && webpack --config webpack.compatibility.config.js && webpack --config webpack.giveawaysu.config.js && node build-all-static.js && node copy.js && node doc-sync.js && node release.js",
16+
"buildv16": "webpack --config webpack.config.js && webpack --config webpack.compatibility.config.js && webpack --config webpack.giveawaysu.config.js && node build-all-static.js && node copy.js && node doc-sync.js && node release.js"
1617
},
1718
"author": "HCLonely <h1606051253@gmail.com>",
1819
"license": "MIT",

page/dist/auto-task-v4-for-giveawaysu.all.user.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

page/dist/auto-task-v4-for-giveawaysu.user.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

page/dist/auto-task-v4.all.user.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name auto-task-v4
33
// @namespace auto-task-v4
4-
// @version 4.2.29
4+
// @version 4.2.30
55
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
66
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
77
// @author HCLonely
@@ -1844,6 +1844,10 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
18441844
return 'skip';
18451845
}
18461846
}
1847+
if (!globalOptions.doTask.discord.servers && !globalOptions.undoTask.discord.servers) {
1848+
this.#initialized = false;
1849+
return 'skip';
1850+
}
18471851
if (this.#initialized) {
18481852
return true;
18491853
}

page/dist/auto-task-v4.compatibility.all.user.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

page/dist/auto-task-v4.compatibility.user.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

page/dist/auto-task-v4.user.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name auto-task-v4
33
// @namespace auto-task-v4
4-
// @version 4.2.29
4+
// @version 4.2.30
55
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
66
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
77
// @author HCLonely
@@ -1825,6 +1825,10 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
18251825
return 'skip';
18261826
}
18271827
}
1828+
if (!globalOptions.doTask.discord.servers && !globalOptions.undoTask.discord.servers) {
1829+
this.#initialized = false;
1830+
return 'skip';
1831+
}
18281832
if (this.#initialized) {
18291833
return true;
18301834
}

page/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "auto-task-v4",
3-
"version": "4.2.29",
3+
"version": "4.2.30",
44
"change": [
5-
"优化:Gleam任务识别优化"
5+
"优化:当 Discord 服务器任务全部设置为'false'时不再弹出相关提醒"
66
],
77
"description": "赠Key站自动任务脚本",
88
"main": "package.json",
@@ -12,7 +12,8 @@
1212
"gs": "webpack --config webpack.giveawaysu.config.js",
1313
"dev": "webpack --config webpack.dev.config.js",
1414
"analyze": "webpack-bundle-analyzer ./dist/stats.json",
15-
"build": "set NODE_OPTIONS=--openssl-legacy-provider && webpack --config webpack.config.js && webpack --config webpack.compatibility.config.js && webpack --config webpack.giveawaysu.config.js && node build-all-static.js && node copy.js && node doc-sync.js && node release.js"
15+
"build": "set NODE_OPTIONS=--openssl-legacy-provider && webpack --config webpack.config.js && webpack --config webpack.compatibility.config.js && webpack --config webpack.giveawaysu.config.js && node build-all-static.js && node copy.js && node doc-sync.js && node release.js",
16+
"buildv16": "webpack --config webpack.config.js && webpack --config webpack.compatibility.config.js && webpack --config webpack.giveawaysu.config.js && node build-all-static.js && node copy.js && node doc-sync.js && node release.js"
1617
},
1718
"author": "HCLonely <h1606051253@gmail.com>",
1819
"license": "MIT",

0 commit comments

Comments
 (0)