Skip to content

Commit

Permalink
scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
lz1998 committed Apr 5, 2021
1 parent 6e74e12 commit 28ba138
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ done

#cp application.yml "${OUTPUT_DIR}/application.yml"
cp -r static "${OUTPUT_DIR}/static" # https://github.com/ProtobufBot/Client-UI 前端编译产物dist
cp ./scripts/* "${OUTPUT_DIR}/" # 复制运行脚本

echo "可以把不要的系统删掉">"${OUTPUT_DIR}/可以把不要的系统删掉"

Expand Down
29 changes: 29 additions & 0 deletions scripts/env_run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

cmd="gmc "

if [ $UIN ];then
cmd+="-uin $UIN "
fi

if [ $PASS ];then
cmd+="-pass $PASS "
fi

if [ $PORT ];then
cmd+="-port $PORT "
fi

if [ $WS_URL ];then
cmd+="-ws_url $WS_URL "
fi

if [ $SMS ];then
cmd+="-sms $SMS "
fi

if [ $DEVICE ];then
cmd+="-device $DEVICE "
fi

eval $cmd
7 changes: 7 additions & 0 deletions scripts/linux_run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

read -p "Enter your bot qq:" uin
read -p "Enter your bot password:" pass

# 根据情况修改使用哪个
Go-Mirai-Client-linux-amd64 -uin "$uin" -pass "$pass"
17 changes: 17 additions & 0 deletions scripts/windows_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@echo off

echo ================================================
echo Go-Mirai-Client
echo You can modify this file to login automatically.
echo You can copy this file to manage many bots.
echo https://github.com/ProtobufBot/go-Mirai-Client
echo ================================================

set port=9000

set /p uin=QQ:
set /p pass=Password:
set /p port=Port(9000-60000):


Go-Mirai-Client-windows-amd64.exe -uin %uin% -pass %pass% -port %port%

0 comments on commit 28ba138

Please sign in to comment.