📖 介绍
笑一笑,十年少~ 看个笑话吧~
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-joke
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-joke
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_joke"]
⚙️ 配置
嘿嘿,没什么好配置的
🎉 使用
关键词触发
中文笑话
关键词集合:{"讲个笑话", "说个笑话"}
英文笑话
关键词集合:{"讲个英文笑话", "讲个英语笑话", "说个英文笑话", "说个英语笑话"}
示例图
🙏鸣谢
使用 夏柔API 获取中文笑话
使用 JokeAPI 获取英文笑话
Release files for nonebot-plugin-joke 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nonebot_plugin_joke-0.1.0.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nonebot_plugin_joke-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.4 kB
Release files / nonebot_plugin_joke-0.1.0.tar.gz
| Download URL | nonebot_plugin_joke-0.1.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72eace1004563bce88ca10200cb8d818ee829a8c23992278de209677b8fd8252
|
|
BLAKE2b-256 checksum How to use checksums |
b623d9228306c207fada5c9b607ea30e78b48fc95ef83fa418749c4564a2cdb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / nonebot_plugin_joke-0.1.0-py3-none-any.whl
| Download URL | nonebot_plugin_joke-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be9101fd974bcd490b5f557c7f0889ef19554f910458960e71e387398750c8e9
|
|
BLAKE2b-256 checksum How to use checksums |
3a8e79db077d71716619f29e439c44a07166bb299c2dba0597c6ecd47b6fd838
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|