Git Product home page Git Product logo

alicebot's Introduction

AliceBot

环境依赖
  • ubuntu 18.04
  • jdk8
  • go-cqhttp_linux_arm64
部署步骤
  1. 安装jdk1.8
    sudo apt-get install openjdk-8-jdk

  2. 下载运行go-cq 下载地址:https://docs.go-cqhttp.org/guide/quick_start.html#%E5%9F%BA%E7%A1%80%E6%95%99%E7%A8%8B
    下载到服务器后使用tar -zxvf进行解压
    运行其中的的在解压目录下运行screen -S gocq
    再运行./go-cqhttp,第一次运行会先让你选连接方式,我们选择2:正向Websocket,gocq在解压目录下生成config.yml,这时我们先Ctrl+C
    运行nano config.yml,拉到最下面找到address: 0.0.0.0:8080,把8080替换成9099,然后Ctrl+X,然后按Y,再回车一下保存
    然后再次运行./go-cqhttp,完成登录后按Ctrl+A+D放到后台运行

  3. 执行jar包 先输入screen -S Alice 创建个会话
    然后使用java -jar -Xmx512m --clientBaseConfig.admin=管理员QQ --clientBaseConfig.robot=机器人QQ --clientBaseConfig.wakeUpWord=唤醒词 --clientBaseConfig.standbyWord=待机词 --clientBaseConfig.promptUpWord=提示词 --clientBaseConfig.robotName=机器人名称 --chatGPT.email=gpt邮箱 --chatGPT.password=gpt密码 --chatGPT.sessionToken=token --server.port=8080
    运行后再使用Ctrl+A+D放到后台运行即可

机器人的所有操作指令(以下指令皆需唤醒机器人后再进行发送才能生效)

#private 将机器人设为私有的,需要权限(默认就是私有)
#public 将机器人设为所有人可用
add @某人 添加一个拥有权限的使用者
del @某人 将某人从使用者列表移除
#reset 在多线程模式下清除所有会话,单线程模式下清除会话
#reset me 用于多线程时清除管理员自己的会话
#more 开启多线程模式
#less 关闭多线程模式
#alone 开启一问到底(既无需唤醒机器人)
#add this 将当前的群聊加入权限列表
#del this 将当前的群聊从权限列表中移除
#help 查看指令列表

V3.1.0 版本内容更新
  1. 修复 因CloudFlare无法运行

alicebot's People

Contributors

fokersboolean avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.