Giter Club home page Giter Club logo

pbot's Introduction

Pbot

Pbot

一个相对不那么xjb写的,并基于Nonebot2的QQ🤖。

功能很杂,代码风格很要命。

试用 QQ 群:1037557679

功能概览

蓝色字体的功能表示有使用帮助!点击它即可跳转!

  • 搜图 - st:包括以图搜图及关键字搜图。
  • 机器翻译 - wm
  • Rss订阅及查看 - rss
  • 点歌 - 点歌
  • 戳一戳
  • 切噜一下 - 切噜一下 | 切噜~♪ :(抄自Hoshino
  • 根据 P 站 id 看原图 - cat
  • 复读
  • 每日早上好
  • 今日人品 - jrrp
  • 能不能好好说话 - hhsh

RoadMap

版本 发布时间或 Milestone 截至时间 Key Feature
v0.1.0 2020-11-24 老Bot的关键功能迁移完成
v0.2.0 老Bot的全部功能迁移完成
v0.3.0 配置方式优化
v0.4.0 可迁移部署及文档完善
咕咕咕 没想好
--- (可能永远无法完成(真的不大可能有((( web UI

现在 wiki 还在 Working 中。可以先看 这里 了解老 bot 的相关功能介绍!(毕竟正在迁移到 Nonebot2 )

安装

安装 Pbot 本体

安装的步骤主要是装依赖、装收消息的东西(mirai之类的,推荐用go-cqhttp),然后就可以跑了。

安装收消息的东西

现在收消息的东西很多,mirai、mirai-ok、go-cqhttp等等。因为 go-cqhttp 非常傻瓜无脑,一键安装,所以我就用的是他了。

安装依赖

由于 nonebot2 本身就是使用poetry管理环境,因此这里也同样使用 poetry 管理环境。

  • clone 本仓库并切到该文件夹:

    git clone https://github.com/Pzzzzz5142/Pbot.git && cd Pbot

  • 安装 poetry

    你喜欢怎么装就怎么装

  • 安装依赖:

    poetry install

    如果是国内的服务器,安装的时候可能速度比较慢。而 poetry 本质上还是依赖于 pip 进行安装,所以给 pip 换上国内源就可以加速了。

(可选)安装数据库

由于本 bot 使用的是一个异步框架,同时由于 sqlite 本身不支持异步的操作(或者说我没找到)。因此涉及到持久化的功能都使用到了 postgreSQL 数据库。

使用到数据库的功能包括:rss记录推送及订阅信息、功能开关今日人品

如果你想使用上述功能,则必须安装 postgreSQL 和 alembic。其中 alembic 用于数据库的迁移。

当然如果你觉得这部分比较复杂或者不需要上述三个功能,则可以无视掉这一步。

Working 中

配置

Working 中

pbot's People

Contributors

pzzzzz5142 avatar

Watchers

James Cloos 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.