From 892674476e649a18dfbda55f16e45c295013ee34 Mon Sep 17 00:00:00 2001 From: liyunze <50455574+liyunze-coding@users.noreply.github.com> Date: Mon, 29 Apr 2024 17:08:31 +0800 Subject: [PATCH] big update: indexedDB, defaultconfigs --- configs.js | 17 +- index.html | 56 +-- scripts/defaultConfigs.js | 363 ++++++++++++++++ scripts/functions.js | 12 + scripts/index.js | 204 +++++---- scripts/taskList.js | 867 ++++++++++++++++++-------------------- 6 files changed, 940 insertions(+), 579 deletions(-) create mode 100644 scripts/defaultConfigs.js create mode 100644 scripts/functions.js diff --git a/configs.js b/configs.js index 981fefc..1d00d91 100644 --- a/configs.js +++ b/configs.js @@ -4,7 +4,7 @@ const configs = (function () { const settings = { enableLimit: false, // true or false limit: 10, // integer - automaticDoneIndex: true, // true or false - Automatically assume first unfinished task is complete + automaticDoneIndex: false, // true or false - Automatically assume first unfinished task is complete pointsName: "points", // string pointsPerTask: 10, // integer taskSeparator: [";", ","], // array of strings @@ -286,14 +286,7 @@ const configs = (function () { adminResetUsersCount: ["!resetuserscount"], - adminClearAllCommands: [ - "!clearall", - "!allclear", - "!adminclearall", - "!adminallclear", - "!aclearall", - "!aclear", - ], + adminClearAllCommands: ["!clearallnoregrets"], adminSetBoardCount: ["!setboardcount", "!setallcount"], additionalCommands: { @@ -331,6 +324,7 @@ const configs = (function () { "All tasks have been cleared except for the streamer's, {user}!", clearedTasks: "All tasks have been cleared, {user}!", adminDeleteTasks: "All of {mentioned}'s tasks have been deleted", + clearedAll: "All tasks and points have been cleared, {user}!", // Grouped by task completion responses taskFinished: @@ -379,6 +373,11 @@ const configs = (function () { // Help response help: `{user} Use the following commands to help you out - !task !edit !remove !done. For mods, you can do !adel @user. More commmands here: https://github.com/liyunze-coding/Chat-Task-Tic-Overlay/blob/main/MultiTask.md/`, + + "chat-task-tic": + "Chat-Task-Tic widget is a free and open source task widget developed by @RythonDev ! https://github.com/liyunze-coding/chat-task-tic-overlay-infinity", + multitask: + "If you want to add the multi-task widget to your stream, you can buy it from ko-fi! https://ko-fi.com/s/94e7e8dc81", // to edit check task command, go to // scripts/taskList.js // function checkTasks(username) diff --git a/index.html b/index.html index cca9678..acaca72 100644 --- a/index.html +++ b/index.html @@ -1,32 +1,33 @@ +
+ + + + + - - - - - - + + + + + + - - - - + - +