_✨Nonebot猫猫http状态码插件✨_
Project description
💿 安装
1. nb-cli安装(推荐)
bot根目录下打开命令行,执行nb命令安装插件,插件配置会自动添加至配置文件
nb plugin install nonebot_plugin_HttpCat
2. pip安装
pip install nonebot_plugin_HttpCat --upgrade
打开 nonebot2 项目的 bot.py
文件, 在其中写入
nonebot.load_plugin('nonebot_plugin_HttpCat')
或在bot路径pyproject.toml
的[tool.nonebot]
的plugins
中添加nonebot_plugin_HttpCat
即可
3.应用思路(开发者)
本包提供了两个函数,分别对应了httpcat的 解释msg 和 图片url,或许大家可以拿来让http报错不再无聊~(笑)
from nonebot_plugin_HttpCat import httpcat_msg,httpcat_pic
...
send(msgs + MessageSegment.image(file=url))
🎉 使用
指令表
指令 | 需要@ | 范围 | 说明 |
---|---|---|---|
httpcat + http status code | 否 | 群聊/私聊 | 后加http提示码 |
注意
默认情况下, 您应该在指令前加上命令前缀, 通常是 /
🧡特别感谢
omega-miya: https://github.com/Ailitonia/omega-miya 超可爱的Miyabot提供的httpcat思路
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for nonebot_plugin_HttpCat-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0a33ce49052442fc2ecfa59caefcc6c1b6c852936430d660ecac706db3ecb61 |
|
MD5 | 9fbb9d4187799e47284c1c2070cc822a |
|
BLAKE2b-256 | 739126747244cd5e02bc2a5eeb0590c7b49431f062000d34e35cb298fb928e01 |