别问怎么用 会用的都会用
#glados #签到 #脚本
#!/usr/bin/env bash
DIR=$( cd $(dirname $0) ; pwd )
echo $DIR
text=curl 'https://glados.rocks/api/user/checkin' \
-s \
-b glados.txt -c glados.txt \
-H 'Accept: application/json, text/plain, /' \
-H 'Referer;' \
-H 'DNT: 1' \
-H 'cookie: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
-H 'Authorization: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
-H 'User-Agent: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"token":"glados.network"}' \
--compressed
echo $text
# 装个 yq 用来解析 json
text=echo $text| yq ".message"
echo $text
# tg 发消息
api_key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
chat_id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
curl -F disable_notification=true -F chat_id=$chat_id -F "text=glados: $text" https://api.telegram.org/bot$api_key/sendMessage
💬 查看最新原文
📢 折腾啥 频道
👥 折腾啥 群组
#glados #签到 #脚本
#!/usr/bin/env bash
DIR=$( cd $(dirname $0) ; pwd )
echo $DIR
text=curl 'https://glados.rocks/api/user/checkin' \
-s \
-b glados.txt -c glados.txt \
-H 'Accept: application/json, text/plain, /' \
-H 'Referer;' \
-H 'DNT: 1' \
-H 'cookie: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
-H 'Authorization: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
-H 'User-Agent: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"token":"glados.network"}' \
--compressed
echo $text
# 装个 yq 用来解析 json
text=echo $text| yq ".message"
echo $text
# tg 发消息
api_key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
chat_id="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
curl -F disable_notification=true -F chat_id=$chat_id -F "text=glados: $text" https://api.telegram.org/bot$api_key/sendMessage
💬 查看最新原文
📢 折腾啥 频道
👥 折腾啥 群组