Skip to content

iHe1u0/chat_qq

Repository files navigation

chat_qq

English / 简体中文

  • 本项目基于chatgpt的QQ机器人,在不受支持的地区部署的话,注意需要使用一个反向代理绕过openai的检查,具体的名单可以参考openai官方网址:Supported countries and territories

  • 你也可以使用一个闲置的手机/电脑/平板来运行本项目,Android设备推荐使用开源软件Termux,推荐使用我编译好的Termux 下载密码:3vxm,相比起原版可以更好的显示二维码,关于Termux的换源、安装nodejs、git的教程,请自行搜索。

  • 由于腾讯接口的原因,首次登录需要扫码验证登录,后续可以直接使用token登录。

如何使用

  1. 配置 gitnodejs 环境。

  2. 将本项目克隆到你本地或者你的服务器上:

    git clone https://github.com/iHe1u0/chat_qq
  3. 在项目根路径运行 npm install 安装相关依赖。

  4. 修改 example.env 并重命名为 .env

  5. 运行 npm run dev 进行首次登录,该环境不支持在线更新服务。

  6. 如果是第一次登录,则需要扫码登录,后续会使用缓存在本地的token登录,data目录下的devices.json文件不修改或者不修改密码的话,理论上token会一直有效。

  7. 后续不需要扫码的情况下,可以使用命令 npm run main 进行登录,此方法登录后可使用命令 #更新 来在线更新服务。

联系我们

License

Copyright (c) 2024 coder-cc

"Anti 996" License Version 1.0 (Draft)

Permission is hereby granted to any individual or legal entity
obtaining a copy of this licensed work (including the source code,
documentation and/or related items, hereinafter collectively referred
to as the "licensed work"), free of charge, to deal with the licensed
work for any purpose, including without limitation, the rights to use,
reproduce, modify, prepare derivative works of, distribute, publish
and sublicense the licensed work, subject to the following conditions:

1. The individual or the legal entity must conspicuously display,
without modification, this License and the notice on each redistributed
or derivative copy of the Licensed Work.

2. The individual or the legal entity must strictly comply with all
applicable laws, regulations, rules and standards of the jurisdiction
relating to labor and employment where the individual is physically
located or where the individual was born or naturalized; or where the
legal entity is registered or is operating (whichever is stricter). In
case that the jurisdiction has no such laws, regulations, rules and
standards or its laws, regulations, rules and standards are
unenforceable, the individual or the legal entity are required to
comply with Core International Labor Standards.

3. The individual or the legal entity shall not induce, suggest or force
its employee(s), whether full-time or part-time, or its independent
contractor(s), in any methods, to agree in oral or written form, to
directly or indirectly restrict, weaken or relinquish his or her
rights or remedies under such laws, regulations, rules and standards
relating to labor and employment as mentioned above, no matter whether
such written or oral agreements are enforceable under the laws of the
said jurisdiction, nor shall such individual or the legal entity
limit, in any methods, the rights of its employee(s) or independent
contractor(s) from reporting or complaining to the copyright holder or
relevant authorities monitoring the compliance of the license about
its violation(s) of the said license.

THE LICENSED WORK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN ANY WAY CONNECTION WITH THE
LICENSED WORK OR THE USE OR OTHER DEALINGS IN THE LICENSED WORK.