Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
gfhdhytghd committed Aug 16, 2024
1 parent 22d8f20 commit 1071aac
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion SendQzone/processsend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ postqzone(){
sendmsggroup 请立即扫描二维码
sendmsggroup "[CQ:image,file=$(pwd)/qrcode.png]"
eval $command
sleep 20
sleep 120
else
echo "Cookies file exists. No action needed."
fi
Expand Down
7 changes: 5 additions & 2 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ qqid=$(grep 'mainqq-id' oqqwall.config | cut -d'=' -f2 | tr -d '"')
groupid=$(grep 'management-group-id' oqqwall.config | cut -d'=' -f2 | tr -d '"')
commgroup_id=$(grep 'communicate-group' oqqwall.config | cut -d'=' -f2 | tr -d '"')
apikey=$(grep 'apikey' oqqwall.config | cut -d'=' -f2 | tr -d '"')
litegettag=$(grep 'use_lite_tag_generator' oqqwall.config | cut -d'=' -f2 | tr -d '"')
DIR="./getmsgserv/rawpost/"
check_variable() {
var_name=$1
Expand Down Expand Up @@ -71,9 +72,11 @@ getnumnext-startup(){
else
output="Log Error!"
fi
echo $output
if echo "$output" | grep -q "Log Error!"; then
numfnow=$( cat ./numfinal.txt )
numnow=$( cat ./numfinal.txt )
numfinal=$[ numnow + 1 ]
echo numfinal:$numfinal
echo $numfinal > ./numfinal.txt
else
numnow=$( cat ./numb.txt )
Expand Down Expand Up @@ -110,13 +113,13 @@ waitforprivmsg(){
sleep 1
done
}
sendmsggroup 机器人已启动
# 监测目录
DIR="./getmsgserv/rawpost/"
# 获取初始文件列表
initial_files=$(ls "$DIR")
echo 初始化编号...
getnumnext-startup
sendmsggroup 机器人已启动
echo 启动系统主循环
while true; do
echo 启动系统等待循环
Expand Down
5 changes: 3 additions & 2 deletions oqqwall.config
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
mainqq-id="xxx"
secondaryqq-id="xxx"
management-group-id=""
apikey="xxx"
management-group-id="xxx"
apikey="sk-xxx
communicate-group=""
disable_qzone_autologin=false
use_lite_tag_generator=false
use_LLOnebot=false
max_attempts_qzone_autologin=3

0 comments on commit 1071aac

Please sign in to comment.