Code Monkey home page Code Monkey logo

paimonbot's Introduction

派蒙Bot / PaimonBot

基于Mrs4s / go-cqhttpnonebot / nonebot2 的原神QQ群聊机器人

作者已退游 项目停止维护 感谢大家的支持

小引一波

推荐关注几个非常可爱有趣的女孩! 欢迎B站搜索:
@嘉然今天吃什么@向晚大魔王  @乃琳Queen   @贝拉kira   @珈乐Carol

特别鸣谢

MingxuanGame 的人物武器名字自动纠正功能
小灰灰 的人物武器信息api

环境

请务必使用Python3.7以上版本!!

尽量在linux下运行,windows下可能会有各种报错。

更新记录

2021-5-29 防刷屏功能
2021-5-22 更新1.5下版本材料(替换src/data文件夹即可) 2021-5-2 更新1.5版本周本材料
2021-4-29 修复米游社资料查询失败
2021-4-9 修复CD bug ,增加防闪照,新撤回涩图机制用法 回复Bot:撤回@发涩图指令的人
2021-4-7 更新武器资料,修复windows下路径bug
2021-4-6 修复Bug,增加涩图cd功能,默认60秒,在.env文件设置时间,超级用户不受影响
2021-4-5 优化涩图速度增加,增加涩图关键词搜索
2021-4-3 全部移植到nonebot2,增加防撤回,戳一戳等功能
.
.
.
2021-3-14 第一次更新

部署方法

1 .卸载以前的nonebot

pip3 uninstall nonebot

2.安装依赖库

pip3 install -r requirements.txt

3.在.env和.env.dev文件中设置所需的cookie和SUPERUSERS(超级用户)

4.配置go-cqhttp 详细请观看go-cqhttp官方文档nonebot2官方文档
注意!!PaimonBot连接端口为9898
注意!!PaimonBot连接端口为9898
注意!!PaimonBot连接端口为9898

5.运行Bot.py

python3 bot.py

6.搭建成功,发送help获取菜单

目前功能

1.米游社资料查询

2.每日副本查询

3.角色资料查询

4.在线运行代码(目前支持py / js / c / c++ / c# / java)

5.群聊防撤回,戳一戳回复

6.涩图(不稳定,望谅解!ps超级用户可以回复撤回可以撤回最后一条涩图)

注意事项

1.Bot账号请勿使用低等级小号,会导致风控使信息发不出来
2.若想稳定运行,请在服务器挂一个星期左右
3.将config.hjson文件中的消息分片打开可降级被风控的概率,不过会导致撤回涩图功能失效

// 是否强制分片发送消息
// 分片发送将会带来更快的速度
// 但是兼容性会有些问题
force_fragmented: true

写在最后

本人能力较低,有些代码写的可能比较烂,请大佬亲喷,谢谢!
发现什么bug或者想要功能欢迎大家提iss和Pr。

paimonbot's People

Contributors

arondight avatar mingxuangame avatar xiaomiku01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

paimonbot's Issues

连接到反向WebSocket Universal服务器错误

开始尝试连接到反向WebSocket Universal服务器: ws://127.0.0.1:9898/cqhttp/ws
[2021-04-07 21:27:21] [WARNING]: 连接到反向WebSocket Universal服务器 ws://127.0.0.1:9898/cqhttp/ws 时出现错误: dial tcp 127.0.0.1:9898: connectex: No connection could be made because the target machine actively refused it.

请问这是什么问题鸭

在程序内分发go-cqhttp的开源许可问题

go-cqhttp采用AGPL开源许可,从理论上如果在程序内直接分发并打包go-cqhttp(无论是二进制或是源代码)
程序应当同样按照AGPL许可开源,这将要求任何人对该代码做的任何修改,都应该被开源

我个人在建议仓库中移除go-cqhttp相关的二进制文件,交由用户自行下载
这样可以规避AGPL许可的传染性问题

针对功能设置的问题

部分功能可能因为所在群的问题或者其他原因需要关闭功能,希望添加一个配置文件来完成功能设置

在HoshinoBot下移植的授权请求

Hoshinobot是一个基于 nonebot 框架下的开源的QQ机器人

我想要将该项目作为hoshino的插件进行移植,希望能够获得作者的授权

作为插件开源后会标出原项目地址

challenge插件bug反馈

周六时查询明日天赋/武器均无反应,后台日志有报错,应该是没有对应tf7.png和we7.png的原因,此外查询周日(星期天)天赋/武器命令也没有对应的判断语句,查询都是返回周六的图片

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.