daily backup 2026-03-30 08:00:10
This commit is contained in:
parent
d1fedc5560
commit
47287881aa
50
check_employee_change.sh
Executable file
50
check_employee_change.sh
Executable file
@ -0,0 +1,50 @@
|
||||
#!/bin/bash
|
||||
# 全员群ID
|
||||
CHAT_ID="oc_d7a8edc423d05f2fa6a5f4c0d8eb4e86"
|
||||
# 成员列表保存路径
|
||||
SAVE_DIR="/root/.openclaw/workspace/member_records"
|
||||
mkdir -p $SAVE_DIR
|
||||
|
||||
# 获取当前日期和昨天日期
|
||||
TODAY=$(date +%Y-%m-%d)
|
||||
YESTERDAY=$(date -d "yesterday" +%Y-%m-%d)
|
||||
|
||||
# 今天的成员列表文件
|
||||
TODAY_FILE="$SAVE_DIR/members_$TODAY.txt"
|
||||
# 昨天的成员列表文件
|
||||
YESTERDAY_FILE="$SAVE_DIR/members_$YESTERDAY.txt"
|
||||
|
||||
# 获取当前群成员列表
|
||||
openclaw tool run feishu_chat_members --chat_id $CHAT_ID --page_size 100 | jq -r '.items[] | "\(.name)|\(.member_id)"' > $TODAY_FILE
|
||||
|
||||
# 如果昨天的文件不存在,首次运行,不对比
|
||||
if [ ! -f $YESTERDAY_FILE ]; then
|
||||
echo "首次运行,已保存今日成员列表,明天开始对比"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# 对比找出新增和减少的人员
|
||||
ADDED=$(comm -23 <(sort $TODAY_FILE) <(sort $YESTERDAY_FILE) | awk -F '|' '{print $1"(" $2 ")"}')
|
||||
REMOVED=$(comm -13 <(sort $TODAY_FILE) <(sort $YESTERDAY_FILE) | awk -F '|' '{print $1"(" $2 ")"}')
|
||||
|
||||
# 构建通知消息
|
||||
MESSAGE="📊 每日全员群成员变动通知 ($TODAY):\n"
|
||||
HAS_CHANGE=0
|
||||
|
||||
if [ -n "$ADDED" ]; then
|
||||
HAS_CHANGE=1
|
||||
MESSAGE="$MESSAGE\n✅ 新增成员:\n$ADDED\n"
|
||||
fi
|
||||
|
||||
if [ -n "$REMOVED" ]; then
|
||||
HAS_CHANGE=1
|
||||
MESSAGE="$MESSAGE\n❌ 移除成员:\n$REMOVED\n"
|
||||
fi
|
||||
|
||||
# 如果有变动,发送通知
|
||||
if [ $HAS_CHANGE -eq 1 ]; then
|
||||
# 发送飞书消息
|
||||
openclaw tool run message --action send --channel feishu --target "user:ou_7c623036b45fe81f372b032da664a4fe" --message "$MESSAGE"
|
||||
else
|
||||
echo "今日无成员变动"
|
||||
fi
|
||||
56
member_records/members_2026-03-29.txt
Normal file
56
member_records/members_2026-03-29.txt
Normal file
@ -0,0 +1,56 @@
|
||||
刘庆逊|ou_fc1c478b4f1e157bcce33fd1ca167944
|
||||
刘彦江|ou_97bbd192eb7b92973169f4063645ab4c
|
||||
胡晓阳|ou_197424ec8603b9d94c6dd240feb97e47
|
||||
张钟月|ou_ebe6d87e244461becea583c04f0b6270
|
||||
黄挥伟|ou_2871287b1996d5b103ec64e4b7473350
|
||||
俞欣宜|ou_fefd298c7124c7d8bb0f2186577a74ec
|
||||
崔竞月|ou_ade6458cb08775f1c7c53964478da20e
|
||||
李玉|ou_92127a3f33b1d4aaac4979a101735ff9
|
||||
李雷|ou_256402dfebdb4fbab8cc2767479740fa
|
||||
李若松|ou_7c623036b45fe81f372b032da664a4fe
|
||||
范威|ou_1f8582ec7191407622196d330c83ae5e
|
||||
李文俊|ou_3a01607b6306610f3dad713402dca8d4
|
||||
杨振宇|ou_d2fcdbffefe4bd3ea85c370d29bb022c
|
||||
王计|ou_373c152e5c3c2240d82424b49b63332a
|
||||
胡陈辰|ou_b202b75dc0bb2d784c1439ba33583778
|
||||
吴敬兴|ou_b6b0f0830743a8ae28e9b0c250a6e9d6
|
||||
庞鸿潇|ou_54ccf64fd2dfb3b6612995567c654361
|
||||
毋益飞|ou_3e2cc9267f5cb095896687b0dbe53f65
|
||||
江涛|ou_378fc733b1f92e4102f7ddc0e08e7fed
|
||||
李承龙|ou_ce1a55c9d2def2323363af20d4307bfb
|
||||
梁晨|ou_b6835a701ef8cf45165c1a785b9a561e
|
||||
王增礼|ou_c04eb2f3d4ae893d0ba7a93f0067294c
|
||||
张骜|ou_aa0e726a8c2dafb8ebb496ddbeff3f21
|
||||
魏亭亭|ou_8864b8916e71ea03ed86ea2fde793501
|
||||
张沄菥|ou_ef4ddd822b242a1c9f241c758b223760
|
||||
俞凯歌|ou_8d6a7a1188f715a182aec75961d33b0c
|
||||
曲慧萌|ou_e42531e4f84fb84194989056c15fa2dd
|
||||
何彬君|ou_6ecb64e1b28deaf182ebfd4077201322
|
||||
李应瑛|ou_45a06629e6cc5a2b0bbdafffecc75000
|
||||
王虹茗|ou_91ca97274c13a2a64621355ec5a3df67
|
||||
安君仪|ou_71f93a5c4d5e914a3c188a820868aa44
|
||||
童瑶|ou_66aa92eb3829d0943fcdbbc33a15b17b
|
||||
王祺|ou_536370d55b2e27940bc81fa175a2bab5
|
||||
王欢|ou_bc6d4219a388789cfa766c72c470bbb7
|
||||
张昆鹏|ou_978d9e5c3ee53e6b8a9b68d37cad545f
|
||||
宋莉|ou_ce4292cbd018d171000790ded6e6197a
|
||||
武钰涵|ou_c76906708e463f08a8ed147016aeba70
|
||||
孙时敏|ou_c5f4f91fd6e83a0493a567905e77abde
|
||||
张路|ou_05f026917d115bf43f5b8d581fcbd7d3
|
||||
遇庭翰|ou_5cb1caf045ef930fe4f025e26f1d3eff
|
||||
林逸瀚|ou_70f779990ca8a98095ef8906eb444051
|
||||
王胤鑫|ou_803753cc028cc69bac97586fe2dea8ad
|
||||
李丹|ou_92792ceb9bab57c991c8e0d0e49c5411
|
||||
朱源|ou_0af0512b645a9cd2511fe4c09ce2b20b
|
||||
梁音|ou_657580c2126becc2ae8ef39089b9478e
|
||||
刘亚伟|ou_0cbc5c6808f4b9c0dda3ea92b23c4aed
|
||||
王珞|ou_631b96b178a56c72b098936ee31575c4
|
||||
刘兴冉|ou_8356fd0bc4f0756e1ba6db5db77c3ea8
|
||||
郭少甫|ou_9121d8f214d9cd5427fd7e1447b19785
|
||||
傅硕|ou_b0e158b814ca874110dc8f931062a4e9
|
||||
徐思清|ou_760f21cbd2842bad97a523cc319ab5b8
|
||||
Kala|ou_d2af2192c0f3d404f729c4e9b496b7f5
|
||||
姜小龙|ou_e286f90e5e6835c16c1f01c87def550b
|
||||
许悦|ou_41be03f143cd6e069fcba919aaa0d257
|
||||
刘新玉|ou_008b2789ef15255343d28ab33f7331ba
|
||||
布雪松|ou_6a27f045f9fdc4ce0fa352bc816bc3dd
|
||||
@ -1,142 +1,142 @@
|
||||
{
|
||||
"1162940": {
|
||||
"yes_price": "$0.17",
|
||||
"no_price": "$0.83",
|
||||
"question": "US forces enter Iran by March 31?",
|
||||
"volume": "$3.2M",
|
||||
"timestamp": "2026-03-28T08:00:52.027667"
|
||||
},
|
||||
"1466015": {
|
||||
"yes_price": "$0.04",
|
||||
"no_price": "$0.96",
|
||||
"question": "US x Iran ceasefire by March 31?",
|
||||
"volume": "$2.7M",
|
||||
"timestamp": "2026-03-28T08:00:52.027686"
|
||||
},
|
||||
"1484949": {
|
||||
"yes_price": "$0.01",
|
||||
"no_price": "$0.99",
|
||||
"question": "Netanyahu out by March 31?",
|
||||
"volume": "$2.5M",
|
||||
"timestamp": "2026-03-28T08:00:52.027690"
|
||||
},
|
||||
"1688392": {
|
||||
"yes_price": "$0.45",
|
||||
"no_price": "$0.56",
|
||||
"question": "Michigan State Spartans vs. Connecticut Huskies",
|
||||
"volume": "$2.3M",
|
||||
"timestamp": "2026-03-28T08:00:52.027692"
|
||||
},
|
||||
"1711524": {
|
||||
"yes_price": "$1.00",
|
||||
"no_price": "$0.00",
|
||||
"question": "New York Yankees vs. San Francisco Giants",
|
||||
"volume": "$2.1M",
|
||||
"timestamp": "2026-03-28T08:00:52.027695"
|
||||
},
|
||||
"669660": {
|
||||
"yes_price": "$0.00",
|
||||
"no_price": "$1.00",
|
||||
"question": "Will the Fed decrease interest rates by 50+ bps after the April 2026 meeting?",
|
||||
"volume": "$2.0M",
|
||||
"timestamp": "2026-03-28T08:00:52.027697"
|
||||
},
|
||||
"1686946": {
|
||||
"yes_price": "$0.23",
|
||||
"no_price": "$0.78",
|
||||
"question": "St. John's Red Storm vs. Duke Blue Devils",
|
||||
"volume": "$1.9M",
|
||||
"timestamp": "2026-03-28T08:00:52.027699"
|
||||
},
|
||||
"1672189": {
|
||||
"1739839": {
|
||||
"yes_price": "$0.64",
|
||||
"no_price": "$0.36",
|
||||
"question": "Hawks vs. Celtics",
|
||||
"question": "Illinois Fighting Illini vs. Iowa Hawkeyes",
|
||||
"volume": "$7.8M",
|
||||
"timestamp": "2026-03-29T08:01:03.710883"
|
||||
},
|
||||
"1682614": {
|
||||
"yes_price": "$1.00",
|
||||
"no_price": "$0.00",
|
||||
"question": "Pistons vs. Timberwolves",
|
||||
"volume": "$5.1M",
|
||||
"timestamp": "2026-03-29T08:01:03.710902"
|
||||
},
|
||||
"1739838": {
|
||||
"yes_price": "$0.28",
|
||||
"no_price": "$0.71",
|
||||
"question": "Purdue Boilermakers vs. Arizona Wildcats",
|
||||
"volume": "$5.0M",
|
||||
"timestamp": "2026-03-29T08:01:03.710906"
|
||||
},
|
||||
"1484949": {
|
||||
"yes_price": "$0.00",
|
||||
"no_price": "$1.00",
|
||||
"question": "Netanyahu out by March 31?",
|
||||
"volume": "$3.8M",
|
||||
"timestamp": "2026-03-29T08:01:03.710909"
|
||||
},
|
||||
"948040": {
|
||||
"yes_price": "$0.00",
|
||||
"no_price": "$1.00",
|
||||
"question": "Will the Democratic Coalition (DK) win the most seats in the next Hungarian parliamentary election?",
|
||||
"volume": "$2.8M",
|
||||
"timestamp": "2026-03-29T08:01:03.710911"
|
||||
},
|
||||
"1162940": {
|
||||
"yes_price": "$0.10",
|
||||
"no_price": "$0.90",
|
||||
"question": "US forces enter Iran by March 31?",
|
||||
"volume": "$2.7M",
|
||||
"timestamp": "2026-03-29T08:01:03.710913"
|
||||
},
|
||||
"1682607": {
|
||||
"yes_price": "$0.21",
|
||||
"no_price": "$0.79",
|
||||
"question": "76ers vs. Hornets",
|
||||
"volume": "$2.4M",
|
||||
"timestamp": "2026-03-29T08:01:03.710915"
|
||||
},
|
||||
"1739460": {
|
||||
"yes_price": "$1.00",
|
||||
"no_price": "$0.00",
|
||||
"question": "Miami Open: Aryna Sabalenka vs Coco Gauff",
|
||||
"volume": "$2.3M",
|
||||
"timestamp": "2026-03-29T08:01:03.710917"
|
||||
},
|
||||
"1682605": {
|
||||
"yes_price": "$1.00",
|
||||
"no_price": "$0.00",
|
||||
"question": "Spurs vs. Bucks",
|
||||
"volume": "$2.3M",
|
||||
"timestamp": "2026-03-29T08:01:03.710919"
|
||||
},
|
||||
"558977": {
|
||||
"yes_price": "$0.00",
|
||||
"no_price": "$1.00",
|
||||
"question": "Will Haiti win the 2026 FIFA World Cup?",
|
||||
"volume": "$2.3M",
|
||||
"timestamp": "2026-03-29T08:01:03.710921"
|
||||
},
|
||||
"1466015": {
|
||||
"yes_price": "$0.02",
|
||||
"no_price": "$0.98",
|
||||
"question": "US x Iran ceasefire by March 31?",
|
||||
"volume": "$1.8M",
|
||||
"timestamp": "2026-03-28T08:00:52.027701"
|
||||
"timestamp": "2026-03-29T08:01:03.710923"
|
||||
},
|
||||
"958442": {
|
||||
"yes_price": "$0.01",
|
||||
"no_price": "$0.99",
|
||||
"question": "Will the Iranian regime fall by March 31?",
|
||||
"volume": "$1.6M",
|
||||
"timestamp": "2026-03-28T08:00:52.027703"
|
||||
},
|
||||
"1672199": {
|
||||
"yes_price": "$0.26",
|
||||
"no_price": "$0.74",
|
||||
"question": "Pelicans vs. Raptors",
|
||||
"volume": "$1.5M",
|
||||
"timestamp": "2026-03-28T08:00:52.027704"
|
||||
},
|
||||
"1672184": {
|
||||
"yes_price": "$0.36",
|
||||
"no_price": "$0.64",
|
||||
"question": "Clippers vs. Pacers",
|
||||
"volume": "$1.5M",
|
||||
"timestamp": "2026-03-28T08:00:52.027706"
|
||||
},
|
||||
"558970": {
|
||||
"1752738": {
|
||||
"yes_price": "$0.00",
|
||||
"no_price": "$1.00",
|
||||
"question": "Will Cape Verde win the 2026 FIFA World Cup?",
|
||||
"volume": "$1.5M",
|
||||
"timestamp": "2026-03-28T08:00:52.027709"
|
||||
"question": "Will Elon Musk post 20-39 tweets from March 31 to April 7, 2026?",
|
||||
"volume": "$1.8M",
|
||||
"timestamp": "2026-03-29T08:01:03.710925"
|
||||
},
|
||||
"1709468": {
|
||||
"1748887": {
|
||||
"yes_price": "$1.00",
|
||||
"no_price": "$0.00",
|
||||
"question": "Will Crude Oil (CL) hit (HIGH) $95 by end of March?",
|
||||
"question": "Spread: Spurs (-17.5)",
|
||||
"volume": "$1.7M",
|
||||
"timestamp": "2026-03-29T08:01:03.710927"
|
||||
},
|
||||
"1476588": {
|
||||
"yes_price": "$0.00",
|
||||
"no_price": "$1.00",
|
||||
"question": "Devils vs. Hurricanes",
|
||||
"volume": "$1.5M",
|
||||
"timestamp": "2026-03-29T08:01:03.710929"
|
||||
},
|
||||
"558954": {
|
||||
"yes_price": "$0.00",
|
||||
"no_price": "$1.00",
|
||||
"question": "Will Tunisia win the 2026 FIFA World Cup?",
|
||||
"volume": "$1.4M",
|
||||
"timestamp": "2026-03-28T08:00:52.027710"
|
||||
"timestamp": "2026-03-29T08:01:03.710930"
|
||||
},
|
||||
"1466065": {
|
||||
"1761287": {
|
||||
"yes_price": "$1.00",
|
||||
"no_price": "$0.00",
|
||||
"question": "Will Germany win on 2026-03-27?",
|
||||
"volume": "$1.3M",
|
||||
"timestamp": "2026-03-28T08:00:52.027712"
|
||||
"question": "Dota 2: Xtreme Gaming vs PARIVISION (BO3) - ESL One Birmingham Playoffs",
|
||||
"volume": "$1.4M",
|
||||
"timestamp": "2026-03-29T08:01:03.710932"
|
||||
},
|
||||
"1467183": {
|
||||
"yes_price": "$0.89",
|
||||
"no_price": "$0.12",
|
||||
"question": "Red Wings vs. Sabres",
|
||||
"volume": "$1.3M",
|
||||
"timestamp": "2026-03-28T08:00:52.027714"
|
||||
},
|
||||
"1738287": {
|
||||
"yes_price": "$0.11",
|
||||
"no_price": "$0.89",
|
||||
"question": "Spread: Clippers (-9.5)",
|
||||
"volume": "$1.2M",
|
||||
"timestamp": "2026-03-28T08:00:52.027715"
|
||||
},
|
||||
"1711534": {
|
||||
"yes_price": "$0.29",
|
||||
"no_price": "$0.70",
|
||||
"question": "Kansas City Royals vs. Atlanta Braves",
|
||||
"volume": "$1.2M",
|
||||
"timestamp": "2026-03-28T08:00:52.027717"
|
||||
},
|
||||
"1473053": {
|
||||
"1476571": {
|
||||
"yes_price": "$0.00",
|
||||
"no_price": "$1.00",
|
||||
"question": "Will Bitcoin reach $100,000 in March?",
|
||||
"volume": "$1.1M",
|
||||
"timestamp": "2026-03-28T08:00:52.027719"
|
||||
"question": "Ducks vs. Oilers",
|
||||
"volume": "$1.3M",
|
||||
"timestamp": "2026-03-29T08:01:03.710934"
|
||||
},
|
||||
"1467766": {
|
||||
"yes_price": "$0.76",
|
||||
"no_price": "$0.24",
|
||||
"question": "Will Crude Oil (CL) hit (HIGH) $100 by end of March?",
|
||||
"volume": "$1.1M",
|
||||
"timestamp": "2026-03-28T08:00:52.027721"
|
||||
"1698796": {
|
||||
"yes_price": "$0.00",
|
||||
"no_price": "$1.00",
|
||||
"question": "Will Elon Musk post 40-59 tweets from March 27 to April 3, 2026?",
|
||||
"volume": "$1.3M",
|
||||
"timestamp": "2026-03-29T08:01:03.710936"
|
||||
},
|
||||
"1711526": {
|
||||
"yes_price": "$0.37",
|
||||
"no_price": "$0.63",
|
||||
"question": "Athletics vs. Toronto Blue Jays",
|
||||
"volume": "$1.1M",
|
||||
"timestamp": "2026-03-28T08:00:52.027722"
|
||||
"1697638": {
|
||||
"yes_price": "$0.00",
|
||||
"no_price": "$1.00",
|
||||
"question": "UFC Fight Night: Marcin Tybura vs. Tyrell Fortune (Heavyweight, Prelims)",
|
||||
"volume": "$1.2M",
|
||||
"timestamp": "2026-03-29T08:01:03.710937"
|
||||
},
|
||||
"1766132": {
|
||||
"yes_price": "$0.48",
|
||||
"no_price": "$0.52",
|
||||
"question": "Spread: Hawks (-13.5)",
|
||||
"volume": "$1.2M",
|
||||
"timestamp": "2026-03-29T08:01:03.710939"
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user