Skip to main content

a simple weiwei bot

Project description

nonebot-plugin-weiweibot

✨ 维维豆奶欢乐开怀 😋 ✨

license pypi python downloads

📖 介绍

一个快速查找维维老师语录的机器人

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-weiweibot
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-weiweibot
pdm
pdm add nonebot-plugin-weiweibot
poetry
poetry add nonebot-plugin-weiweibot
conda
conda install nonebot-plugin-weiweibot

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_weiweibot"]

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的必填配置

配置项 必填 默认值 说明
COMMAND_START ["/"] 决定命令开头
COMMAND_SEP ["."] 决定命令分割符
GPG_EMAIL xxx@example.com 决定 bot 使用的密钥
ALGOLIA_APPLICATION_ID 114514 请先将 nin 的图片库上传 algolia
ALGOLIA_API_KEY 114514 请先将 nin 的图片库上传 algolia

🎉 使用

指令表

指令 权限 需要@ 说明
/help 所有人 帮助说明
/deta 所有人 进一步的帮助说明(bushi
/vv 所有人 输入任意关键字, 返回匹配的随机图片
/r 所有人 无需参数, 返回随机图片
/al 所有人 algolia 搜索, 输入任意关键字, 返回匹配列表或指定图
/acc 所有人 精确搜索, 输入关键字, 返回匹配的图片列表或唯一图片
/gpg 所有人 加载 nin 的 gpg 密钥用于加密通信
/upload 所有人 上传图片

🥹 目前仅 /vv 和 /al 指令支持 gpg, clip 正在绝赞施工中

⚠️ 目前部分指令未进行全面的测试

🥰 nin 可以在本仓库的 assets 里下载样例图片

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_weiweibot-0.2.2.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_weiweibot-0.2.2-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_weiweibot-0.2.2.tar.gz.

File metadata

  • Download URL: nonebot_plugin_weiweibot-0.2.2.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for nonebot_plugin_weiweibot-0.2.2.tar.gz
Algorithm Hash digest
SHA256 50fbf422e5f1d74e66614d5e20e21f1d4711ec657f53587020881b9f525b89b2
MD5 05dfa3eb0cafce73ac8bc3701e49bdb7
BLAKE2b-256 917fcf80d5e6173692580d23f85cdbaaf1aacb8d79ca9ad76508817e7403432c

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_weiweibot-0.2.2.tar.gz:

Publisher: python-publish.yml on SwedishDoveCooker/nonebot-plugin-weiweibot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nonebot_plugin_weiweibot-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_weiweibot-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4bd80f98d18a46c24350fcb581082383f6bc7d3b4090fc6bd1a6ba7b33ed14f3
MD5 359b5390d11a31cdd909b692a56f71ed
BLAKE2b-256 eb8e75cbf713489fe6eeaad555729d6b6b0961b48d9fd98e744122650ae81cd5

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_weiweibot-0.2.2-py3-none-any.whl:

Publisher: python-publish.yml on SwedishDoveCooker/nonebot-plugin-weiweibot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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