Skip to main content

一个 nonebot 的 微信 clawbot 协议适配器

Project description

nonebot

nonebot-adapter-claweixin

✨ weixin clawbot 协议适配 ✨

[!NOTE] 目前处于早期阶段

遇到问题可以反馈

配置

修改 NoneBot 配置文件 .env 或者 .env.*

Driver

参考 driver 配置项,添加 HTTPClient 支持

如:

DRIVER=~httpx

配置机器人

可选依赖 nonebot-adapter-claweixin[qrcode] 用于终端中显示二维码

第一步:登陆

方法一:

配置环境变量:

claweixin_login_qrcode_in_info=true

这个环境变量会在机器人启动时获取登陆二维码,然后扫描对应二维码(可以通过访问链接/或者安装qrcode 终端扫描)

即可完成登陆和机器人注册,如果需要持久化,可参考第二步

方法二: 有 nb-cil 环境可以使用

nb claweixin-login

无 nb-cil 环境可以直接使用

claweixin-login

此方法不能直接登陆使用,请执行第二步

第二步:可选的持久化 Token

单个机器人

CLAWEIXIN_TOKEN=["xxx"]

多个机器人

CLAWEIXIN_TOKEN=["aaa","bbb"]

相关项目

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_adapter_claweixin-0.1.10.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

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

nonebot_adapter_claweixin-0.1.10-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_adapter_claweixin-0.1.10.tar.gz.

File metadata

  • Download URL: nonebot_adapter_claweixin-0.1.10.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.26.7 CPython/3.12.10 Windows/11

File hashes

Hashes for nonebot_adapter_claweixin-0.1.10.tar.gz
Algorithm Hash digest
SHA256 874662893e5f90abffe870eee9b7c4400fbbad52e9aa95e10cb7df976e4b0a87
MD5 962fea35d65a223c0b4338e93c7575fd
BLAKE2b-256 868510d8d70b58f5ff8774f075c1b11e804e5c764279b5353045b5f2fd251261

See more details on using hashes here.

File details

Details for the file nonebot_adapter_claweixin-0.1.10-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_adapter_claweixin-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 75dcee49ebc441ec10be0a38307a6d9ddc49ec315e313d924515408672ecbc81
MD5 96350c535d1ff16edbdb93ac3646c569
BLAKE2b-256 2011dca58afdd1fc6b04d9bf041861b2336efdbda1d6e2ef3009dcce72a0ec82

See more details on using hashes here.

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