防止群友断联化
Project description
liteyukibot-plugin-antidislink
📖 介绍
个别群友断联化(dislinklize),其他群友苦不堪言,怎么办? 一个简单的 liteyukibot 示例插件,使用轻雪会话控制器。
💿 安装
使用 pip 安装
在 轻雪 项目的根目录下打开命令行, 输入以下指令即可安装pip install liteyukibot-plugin-antidislink
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install liteyukibot-plugin-antidislink
pdm
pdm add liteyukibot-plugin-antidislink
poetry
poetry add liteyukibot-plugin-antidislink
conda
conda install liteyukibot-plugin-antidislink
🎉 使用
测试运行
- 使用
pdm
pdm run dev
- 或运行入口文件
python main.py
- 或自行通过开发工具运行
from liteyuki.dev.plugin import run_plugins
if __name__ == "__main__":
run_plugins("liteyukibot_plugin_antidislink")
装载到机器人程式运行(生产环境)
在轻雪配置文件中添加如下结构配置其一,使轻雪知晓应加载此插件
- 扁平化配置(推荐在少量配置时使用)
liteyuki.plugins: [ ..., "liteyukibot_plugin_antidislink" ]
- 或普通配置(在主要配置文件中使用)
liteyuki:
plugins:
...
- liteyukibot_plugin_antidislink
⚙️ 配置
参考LiteyukiBot的配置文档,在config下新建配置文件 使用如下配置项
antidislink:
keywords: [ "看看你的", "给我看看", "看看j" ]
replies: [ "不看", "禁止断联化" ]
ℹ️ 其他
- 无
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
Built Distribution
File details
Details for the file liteyukibot_plugin_antidislink-0.1.0.tar.gz
.
File metadata
- Download URL: liteyukibot_plugin_antidislink-0.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.18.1 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e39a34dab93ec1ef3987ce12f408d18b955f9cc406c1fef879d3ac3498f132b |
|
MD5 | a29301b802707ef1a76cd657de9ef518 |
|
BLAKE2b-256 | b05da2554415f87c91efd9030bf2d6b288916cd908e7b2cb7cd90411835bbe10 |
File details
Details for the file liteyukibot_plugin_antidislink-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: liteyukibot_plugin_antidislink-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.18.1 CPython/3.10.12 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80442badf661422e23b0b8202d11125ef7c3cf9f1edae063beefb48c54a709be |
|
MD5 | cf357c950c576acb81323e3fd5629e79 |
|
BLAKE2b-256 | 24b88199b9577ed90bca80f9b2d1fdcc73a45aad2d5dedec838f43ba0c7f0a8b |