Yunzai-bot v3部署

系统:ubuntu-22.04

sudo apt update -y

curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -

sudo apt install vim redis nodejs redis-server git -y

sudo npm install -g pnpm

redis-server --save 900 1 --save 300 10 --daemonize yes --ignore-warnings ARM64-COW-BUG

git clone --depth=1 -b main https://gitee.com/yoimiya-kokomi/Yunzai-Bot.git

cd Yunzai-Bot

npm install

node app.js

如何获取cookie?

浏览器打开米友社登录之后按F12打开控制台输入document.cookie然后复制输出的内容

---------------------------------------------------------------------------------------------------------------

额外内容,插件安装:

锅巴面板(面板管理不容易出错):
cd Yunzai-Bot

gitee国内源:
git clone --depth=1 https://gitee.com/guoba-yunzai/guoba-plugin.git ./plugins/Guoba-Plugin/

github源:
git clone --depth=1 https://github.com/guoba-yunzai/guoba-plugin.git ./plugins/Guoba-Plugin/

pnpm install --filter=guoba-plugin

使用主人给机器人发送:#重启,重启后输入:#锅巴登录

记得防火墙放端口:(看情况)
ufw allow 50831
iptables -A INPUT --dport=50381 -p tcp -j ACCEPT
iptables -A INPUT --dport=50381 -p udp -j ACCEPT
firewall-cmd --zone=public --add-port=50831/tcp --permanent
firewall-cmd --zone=public --add-port=50831/udp --permanent
(老贴心了)
chatgpt-plugin(接入chatgpt聊天):

cd Yunzai-Bot

github源(推荐):
git clone --depth=1 https://github.com/ikechan8370/chatgpt-plugin.git ./plugins/chatgpt-plugin/

gitee国内源(更新不如github及时):
git clone --depth=1 https://gitee.com/ikechan/chatgpt-plugin.git ./plugins/chatgpt-plugin/

cd plugins/chatgpt-plugin
pnpm i

自行获取token

输入#chatgpt设置token,然后发送对应token即可
还有:
#chatgpt设置必应token
#chatgpt删除必应token
#chatgpt查看必应token

  • 7
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值