admin管理员组

文章数量:1619280

推荐8g的棒子 4g搭完还剩1g左右

先通过我之前教程刷好Debian系统

傻妞机器人下载链接:https://cloud.189/t/EjUrmmZnuaIb(访问码:oh5a)

刷好后用FinalShell链接
 


选SSH连接
登录地址:10.42.0.1 用户名:root 密码:1313144



连接Debian
命令 nmtui → 编辑连接 → 选中wifi → 删除
→ 返回 → 启用连接 选择WiFi连接就行了

回到Debian
先给WiFi配置DNS


1nmcli connection show
2nmcli con mod (wifi名字) ipv4.dns "114.114.114.114 8.8.8.8"
3nmcli con up (wifi名字)

1.安装青龙
先 cd /root 确保在root目录 压缩包里的ql.sh上传在root目录
执行 bash /root/ql.sh

显示没有docker的执行下面的(有的忽略)
1apt-get update (更新软件包)
2apt install curl wget (安装curl wget)
3curl -sSL https://get.daocloud.io/docker | sh (安装docker)
4bash /root/ql.sh

完成后进入青龙后台 http://10.42.0.1:5700


 



自己拉jd库就行了

2.安装傻妞
回到FinalShell
1cd /root
2s=sillyGirl;a=arm64;if [[ $(uname -a | grep "x86_64") != "" ]];then a=amd64;fi ;if [ ! -d $s ];then mkdir $s;fi ;cd $s;wget https://ghproxy/https://github/cdle/${s}/releases/download/main/${s}_linux_$a -O $s && chmod 777 $s;pkill -9 $s;$(pwd)/$s


先 ctrl+C 结束
cd /root/sillyGirl
rm -r sillyGirl
把压缩包里的sillyGirl 放到 /root/sillyGirl



右键——文件权限



执行 ./sillyGirl -t


直接在输入框输入 set jd_cookie enable_jd_cookie true
然后再在输入 青龙管理


输入 0


输入http://127.0.0.1:5700/
 



ClientID 跟ClientSecret 都在青龙后台里面
然后输入wq保存


ctrl+C 结束

cd /etc/sillyGirl/
touch sets.conf #新建配置文件



输入以下文字
#傻妞机器人名 #这个没什么用
set sillyGirl name 傻妞
#傻妞http服务端口 #个人建议改一下默认端口8080,就是感觉不能默认,端口记得放行
set sillyGirl port 8080
#傻妞消息撤回等待时间,单位秒 #默认好像是60s
set sillyGirl duration 5
#傻妞自动升级是否通知
set sillyGirl update_notify true
#是否开启傻妞自动更新 #建议关闭,作者经常写错单词!
set sillyGirl auto_update false
#是否启动http服务 #开启http服务 ,默认关闭。使用微信公众号、短网址服务则需要开启。
set sillyGirl enable_http_server true
# 设置监听群聊号码,默认监听所有
set qq groupCode 123456789
# 设置qq临时消息默认群号
set qq tempMessageGroupCode 123456789
# 设置是否自动同意好友请求
set qq auto_friend true
# 是否对监听自身消息进行回复
set qq onself false
# 设置qq管理员
set qq masters 123456789
# 设置接受通知的qq账号,默认管理员接受
set qq notifier 123456789

 


修改完保存

重新拉取傻妞 生效配置
1cd /root
2s=sillyGirl;a=arm64;if [[ $(uname -a | grep "x86_64") != "" ]];then a=amd64;fi ;if [ ! -d $s ];then mkdir $s;fi ;cd $s;wget https://ghproxy/https://github/cdle/${s}/releases/download/main/${s}_linux_$a -O $s && chmod 777 $s;pkill -9 $s;$(pwd)/$s
3cd /root/sillyGirl
4rm -r sillyGirl
然后把压缩包里的sillyGirl 放到 /root/sillyGirl 给满权限
执行 ./sillyGirl -d

3.安装机器人
1cd /root
2mkdir cqhttp && cd cqhttp
压缩包的go-cqhttp_linux_arm64.tar.gz 先在电脑解压 把三个文件上传


go-cqhttp 这个文件权限给满
执行 ./go-cqhttp


选择3 后会生成配置

 



改成 universal: ws://127.0.0.1:8080/qq/receive
保存
4.安装短信登陆(听说偷CK 慎用!不要这步也可以上传ck 直接把ck发给机器人就能上传)
1cd /root
2bash <(curl -s -S -L https://maiark-1256973477.cos.ap-shanghai.myqcloud/kiss.sh)
选择11


选择1

安装完成后
cd /root/MaiARK

 


服务器地址填 http://127.0.0.1:5700

青龙后台新建一个
 

 



ClientID 跟ClientSecret输入刚刚新建这个


回到
cd /root/cqhttp
./go-cqhttp
然后扫码登陆就行了

放置插件


放好后 qq上给机器人发重启 重启完就生效




傻妞配置自启
进程守护
cd /usr/lib/systemd/system
新建一个文件 sillyGirl.service
输入以下文字
[Unit]
Description=silly silly girl bot
After=network.target mysql.service mariadb.service mysqld.service
[Service]
Type=forking
ExecStart=/root/sillyGirl/sillyGirl -d
Restart=always
User=root
Group=root
[Install]
WantedBy=multi-user.target
Alias=sillyGirl.service

注意,ExecStart=xxx 为傻妞的目录,如果不正确请修改为自己的目录。
守护激活
然后分别输入下面的命令激活

重新加载服务配置
systemctl daemon-reload

设置为开机自启
systemctl enable sillyGirl.service

启动服务
systemctl start sillyGirl.service

查看运行状态
systemctl status sillyGirl.service

机器人配置自启


 


cd /root/cqhttp
./go-cqhttp


搞完建议重启或者拔插!!!
搞完建议重启或者拔插!!!
搞完建议重启或者拔插!!!

 

 

本文标签: 机器人教程wifi