semvec/pypi-packages huggingface dataset:
nonebot-plugin-weiweibot 0.2.3
a simple weiwei bot
License: MIT
Requires Python: >=3.12
Keywords: nonebot

<!-- markdownlint-disable MD033 MD036 MD041 MD045 -->
<div align="center">
  <a href="https://v2.nonebot.dev/store">
    <img src="./NoneBotPlugin.svg" width="300" alt="logo">
  </a>

</div>

<div align="center">

# nonebot-plugin-weiweibot

_✨ 维维豆奶欢乐开怀 😋 ✨_

<a href="./LICENSE">
    <img src="https://img.shields.io/github/license/SwedishDoveCooker/nonebot-plugin-weiweibot.svg" alt="license">
</a>
<a href="https://pypi.python.org/pypi/nonebot-plugin-weiweibot">
    <img src="https://img.shields.io/pypi/v/nonebot-plugin-weiweibot.svg" alt="pypi">
</a>
<img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">
<img src="https://img.shields.io/pypi/dm/nonebot-plugin-weiweibot?logo=nonebot-plugin-weiweibot&label=Downloads" alt="downloads">

</div>

## 📖 介绍

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

## 💿 安装

<details open>
<summary>使用 nb-cli 安装</summary>
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装

    nb plugin install nonebot-plugin-weiweibot

</details>

<details>
<summary>使用包管理器安装</summary>
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令

<details>
<summary>pip</summary>

    pip install nonebot-plugin-weiweibot

</details>
<details>
<summary>pdm</summary>

    pdm add nonebot-plugin-weiweibot

</details>
<details>
<summary>poetry</summary>

    poetry add nonebot-plugin-weiweibot

</details>
<details>
<summary>uv</summary>

    uv add nonebot-plugin-weiweibot

</details>

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

    plugins = ["nonebot_plugin_weiweibot"]

</details>

## ⚙️ 配置

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

|         配置项         | 必填 |     默认值      |              说明               |
| :--------------------: | :--: | :-------------: | :-----------------------------: |
|     COMMAND_START      |  否  |      ["/"]      |          决定命令开头           |
|      COMMAND_SEP       |  否  |      ["."]      |         决定命令分割符          |
|       GPG_EMAIL        |  是  | xxx@example.com |       决定 bot 使用的密钥       |
|   PLUG_LISTEN_GROUPS   |  是  | [114514, 1919810] |      决定插件响应群组         |
| ALGOLIA_APPLICATION_ID |  是  |     114514      | 请先将 nin 的图片库上传 algolia |
|    ALGOLIA_API_KEY     |  是  |     114514      | 请先将 nin 的图片库上传 algolia |

## 🎉 使用

### 指令表

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

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

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

<p> 😘本项目使用了 nonebot_plugin_localstore 进行会话存储, 存储位置等请参照该插件文档 </p>

🥰 nin 可以在本仓库的 assets 里下载样例图片
leaklock 0.1.0
Stops API key leaks by blocking commits with secrets before they reach GitHub.
License: MIT
Requires Python: >=3.8

# LeakLock
**Stop secrets before they reach GitHub.**

LeakLock is a lightweight security tool that **scans your code in real time and blocks commits containing API keys, tokens, or passwords**.  
It integrates with Git via a pre-commit hook, so secrets never leave your machine.

---

## Features
- Scans staged files for common secret patterns (AWS keys, GitHub tokens, Slack tokens, etc.)
- Detects high-entropy strings that may indicate secrets
- Blocks commits automatically when secrets are found
- Works with the pre-commit framework for cross-platform support

---

## Installation
Install from PyPI:

```bash
pip install leaklock
```

Or install from source:

```bash
git clone https://github.com/your-username/leaklock.git
cd leaklock
pip install -e .

```
Install pre-requesties:
```bash
pip install requirements.txt
```

Make sure you have ".pre-commit-config.yaml" file in your repo:
```bash
repos:
  - repo: local
    hooks:
      - id: leaklock
        name: LeakLock secret scanner
        entry: leaklock
        language: python
        types: [file]   # scan all files
        files: ''       # optional: can limit to staged files
```
Install the hook in your repo:

```bash
pre-commit install
```

This adds a Git pre-commit hook.
Make a commit

---

## Usage
Scan files manually:
```bash
leaklock
```

Run on all staged files before commit:
```bash
git add .
git commit -m "test commit"
```
If secrets are found → ❌ commit is blocked with a warning.

If clean → ✅ commit goes through.

🔑 Example Output
```bash
❌ Commit blocked by LeakLock (secrets detected):

- AWS Access Key ID detected in app/config.py:23
- Slack Token detected in utils/slack.py:10

Fix or remove these values before committing.
```

---

## Contributing
Contributions are welcome!
- Fork the repo
- Create a feature branch (git checkout -b feature/new-scan)
- Submit a PR

---

## License
MIT License © 2025 LeakLock Contributors