From 36b6f429a128018c6f258c8b75bfefe951e69529 Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Wed, 22 May 2024 14:12:26 +0800 Subject: [PATCH] add schedule for add whitelist --- initdatas/activity_info.json | 32 ++++++++++++++++++++++++++++++++ src/rewardSchedule.ts | 2 +- start_reward.json | 22 ++++++++++++++++++++++ 3 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 start_reward.json diff --git a/initdatas/activity_info.json b/initdatas/activity_info.json index 2662338..8ea9f04 100644 --- a/initdatas/activity_info.json +++ b/initdatas/activity_info.json @@ -451,6 +451,38 @@ "end": "2025-01-01 00:00", "checkChain": false, "params": { "time": 6, "failRate": 0 } + }, + { + "id": "g3cnan1c1e2nxd8vjng", + "task": "TwitterRetweet", + "title": "RT - Miffy Gameplay", + "type": 1, + "desc": "Retweet specific tweets", + "category": "Social Tasks", + "score": 50, + "autoclaim": false, + "pretasks": ["e2yhq2lj30vwcpedv7p"], + "cfg": { "icon": "twitter", "content": "1792552664167002178"}, + "start": "2024-01-01 00:00", + "end": "2025-01-01 00:00", + "checkChain": false, + "params": { "time": 6, "failRate": 0 } + }, + { + "id": "g35pcbvjv63j6ra3yzm", + "task": "TwitterLike", + "title": "Like - Miffy Gameplay", + "type": 1, + "desc": "Like specific tweets", + "category": "Social Tasks", + "score": 50, + "autoclaim": false, + "pretasks": ["e2yhq2lj30vwcpedv7p"], + "cfg": { "icon": "twitter", "content": "1792552664167002178"}, + "start": "2024-01-01 00:00", + "end": "2025-01-01 00:00", + "checkChain": false, + "params": { "time": 6, "failRate": 0 } } ], "drawTime": 1715245160457, diff --git a/src/rewardSchedule.ts b/src/rewardSchedule.ts index 47400eb..aa27b9c 100644 --- a/src/rewardSchedule.ts +++ b/src/rewardSchedule.ts @@ -27,5 +27,5 @@ const addRewards = async (type: number) => { schedule.scheduleJob('0 2,4,6,8,10,12,14,16,18,20 * * *', async () => { await addRewards(1) }) - addRewards(1) + // addRewards(1) })() diff --git a/start_reward.json b/start_reward.json new file mode 100644 index 0000000..c0726a4 --- /dev/null +++ b/start_reward.json @@ -0,0 +1,22 @@ +{ + "apps": [ + { + "name": "draw_schedule", + "script": "npm", + "args": "run prod:reward", + "cwd": "/data/apps/activity-202404", + "max_memory_restart": "1024M", + "log_date_format": "YYYY-MM-DD HH:mm Z", + "watch": false, + "ignore_watch": ["node_modules", "logs", "fixtures", "tasks"], + "instances": 1, + "exec_mode": "fork", + "env": { + "NODE_ENV": "production" + }, + "env_production": { + "NODE_ENV": "production" + } + } + ] +}