Giter Site home page Giter Site logo

paimonbot's Introduction

派蒙Bot / PaimonBot

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

特别鸣谢

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

环境

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

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

更新记录

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.运行Bot.py

python3 bot.py

5.在config.hjson文件中设置Bot的QQ账号密码
go-cqhttp更新,不需要填账号密码,直接右键打开.exe文件(windows下,其他系统请在go-cqhttp 下载),扫码登录

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

xiaomiku01 avatar mingxuangame avatar arondight 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.