Skip to main content

群聊戳戳事件 plugin for NoneBot2

Project description

AgnesDigitalLogo

NoneBotPluginText

nonebot_plugin_poke

✨Nonebot & 戳戳✨

GitHub stars GitHub issues QQ Chat Group pypi python NoneBot

安装

方法一:

    nb plugin install nonebot_plugin_poke

方法二:

    pip install nonebot_plugin_poke

再手动添加nonebot_plugin_poke到bot文件下pyproject.toml文件中

env配置项:

# 在完全不写的情况下,效果是戳戳后反戳戳
# 机器人名称
bot_nickname: str = '宁宁'
# 是否回复图片
poke_send_pic: bool = False
# 是否回复戳戳
poke_send_poke: bool = True
# 是否回复文字
poke_send_text: bool = False
# 是否回复音频
poke_send_acc: bool = False

如果不知道以下配置,默认就可以,只修改上面部分

# poke文件夹位置
poke_path:Path = Path('data/poke')
# 是否开启黑名单模式(否则是白名单)
poke_black: bool = True
# 黑名单屏蔽群组
poke_ban_group:List[str] = []
# 白名单允许群组
poke_allow_group:List[str] = []
# 戳戳优先级
poke_priority:int = 1
# 是否阻断其他指令
poke_block:bool = True

指令

群里双击bot头像,会依次按照配置文件,逐步检查回复

数据结构

举例:
└── data
    └── poke
        ├── poke.txt        # 回复文字
        ├── pic             # 回复图片
            ├── 1.png
            ├── 2.jpg
            ├── 3.jpeg
            └── ...
        └── acc             # 回复音频
            ├── 1.acc
            ├── 2.mp3
            └── ...
...

其他

如果发不出语音,请手动安装ffmpeg

参考

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_poke-0.0.2.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

nonebot_plugin_poke-0.0.2-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_poke-0.0.2.tar.gz.

File metadata

  • Download URL: nonebot_plugin_poke-0.0.2.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for nonebot_plugin_poke-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8b0739f25e70e085a806d3e5fb1e38d35bb8204dbdc71d64eb7b38b6d5761a57
MD5 3218613330f7d880232c2d696370e84e
BLAKE2b-256 196d385fb4eea5bb41cad83e9940dbd3bfcd7cb42acf2dbc651b5419d396bca8

See more details on using hashes here.

File details

Details for the file nonebot_plugin_poke-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_poke-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ee6941e39275c2ee350c3f6506fd8430ee347c28250c027828c87eb6c788d278
MD5 67fd758c3827d0d585a23d7c5b308526
BLAKE2b-256 f06f456ca7b404371d4cd5a9741358f275b105c46a5ae32f39598dd8dc946654

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page