Giter VIP home page Giter VIP logo

nonebot_plugin_picsbank's Introduction

nonebot

nonebot_plugin_picsbank

✨ 一个根据图片回答的插件 ✨

license

简介

picsbank是一个根据群友发送的图片做出相应回答的插件,灵感来源于workbank

使用

pb添加[匹配率x][sidxxxx]发(你要应答的图片)答[你要应答的文字]

pb添加 : 指令,添加一个词条

[匹配率x] : 用于指定图片的误差大小,默认为5.默认使用的是插值哈希算法生成64位哈希指纹,计算汉明距离,匹配率x指汉明距离大小。对于.gif只匹配第一帧图像。

[sidxxxx] : xxxx替换为你想使用的标记,可以用来删除词条。不提供时默认为响应句子。

[应答的文字] : 图片匹配成功时返回的句子。

对于答的部分, 可以用:

/atxxxxxx 会at指定qq号 

/atself 会@发送者

/atbot 代表to_me()会返回True

/command 代表这一句将解释为用户发送的指令,将会把应答的问题送入事件循环用于调用其他插件

/self 替换为 发送者的名字

这一部分模块参考picsbank

pb全局添加

参数同上,但只有超级用户使用

pb删除 [图片][sidxxxx]

pb删除 : 删除指令

[图片] : 要针对的图片,与sid二选一。

[sidxxxx] : 要删除词条的sid,与图片二选一。

pb全局删除

参数同上,只有超级管理员使用

pb词库删除 [群号]

删除指定群只有私聊有用(目前有bug)

pb全局词库删除

pb全部词库删除

即刻开始

  • 使用 nb-cli
nb plugin install nonebot_plugin_picsbank
  • 使用 pip
pip install nonebot_plugin_picsbank

常见问题

教程/实际项目/经验分享

许可证

noneBot_plugin_picsbank 采用 MIT 协议开源,协议文件参考 LICENSE

nonebot_plugin_picsbank's People

Contributors

maxcrazy1101 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

xianum

nonebot_plugin_picsbank's Issues

name "json" is not defined

图片
如图,然后就运行不了了,我看了一下bank.json的文件,是个空文件,其他的就不懂了 (:з」∠)

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.