semvec/pypi-packages huggingface dataset:
nonebot-plugin-duel 0.1.2
nonebot-plugin-duel
License: MIT
Keywords: nonebot2, duel

<p align="center">
  <a href="https://v2.nonebot.dev/"><img src="https://v2.nonebot.dev/logo.png" width="200" height="200" alt="nonebot"></a>
</p>

<div align="center">

# nonebot-plugin-vits-tts

✨ 来一场西部牛仔决斗吧 ✨

<p align="center">
  <a href="https://github.com/Redmomn/nonebot-plugin-duel/blob/master/LICENSE">
    <img src="https://img.shields.io/github/license/Redmomn/nonebot-plugin-duel.svg" alt="license">
  </a>
  <img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="Python">
  <a href="https://pypi.org/project/nonebot-plugin-duel">
    <img src="https://badgen.net/pypi/v/nonebot-plugin-duel" alt="pypi">
  </a>
</p>

</div>
## 📖 介绍
NoneBot2决斗插件  

已兼容pydantic v1&v2

## 💿 安装

<details open>
<summary>nb-cli</summary>

    nb plugin install nonebot-plugin-duel

</details>

<details open>
<summary>pip</summary>

    pip install nonebot_plugin_duel

</details>

## ⚙️ 配置

默认配置示例

```text
# 机器人的自称
DUEL__NICKNAME=阿米娅
# 插件的黑名单用户，是一个int类型的列表
DUEL__BLACKLISTED_USERS=[]
```

## 🎉 使用

- 发送关键词`决斗`并@一个人即可和他发起决斗，例如`决斗@阿米娅`
- 在同一个群里，未结束先前的决斗不会开启新的决斗

```text
- 说 `兔兔，我要与[@一个人]决斗` 
- 对方需在30秒内回复`同意`，否则决斗会取消。
- 接下来，阿米娅会在60秒内的一个随机时间喊出`开始`，在这之后最先发送`开枪`的博士胜出，在喊开始之前发送的博士会被视为犯规。
```

## 💡 感谢

此插件基于[AmiyaBot](https://www.amiyabot.com/)的[决斗插件](https://github.com/hsyhhssyy/amiyabot-game-hsyhhssyy-duel/)
移植而来
Discord-Extension-Interaction 0.6.2
Framework for Application Commands built on discord.py
License: MIT
Requires Python: >=3.10

<h1 align="center">Discord Extension Interaction</h1>
<p align="center">
    <img src="https://img.shields.io/pypi/v/discord-extension-interaction?style=flat" alt="Release" >
    <img src="https://img.shields.io/pypi/dm/discord-extension-interaction?style=flat" alt="Release" >
    <img src="https://img.shields.io/pypi/l/discord-extension-interaction?style=flat" alt="Release" >
</p>

# Introduce
Slash Command is supported through [discord.py](https://github.com/Rapptz/discord.py). <br/>
Based on discord.ext.commands, compatible with existing frames.


#### Compatibility list
<table>
    <thead>
        <tr>
            <th>Moudle Name</th>
            <th>Version</th>
            <th>Tested</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td><a href="https://github.com/Rapptz/discord.py">discord.py</a></td>
            <td>v2.3.0</td>
            <td>✔️</td>
        </tr>
        <tr>
            <td><a href="https://github.com/Pycord-Development/pycord">Pycord</a></td>
            <td>v2.4.1</td>
            <td>❌</td>
        </tr>
    </tbody>
</table>

* Plans to support py-cord, but `discord-extension-interaction` is not supported now.

# Installing
**Python 3.9 or higher is required.**<br/>

To install the library without full voice support, you can just run the following command:
```commandline
# Linux/macOS
python3 -m pip install -U discord-extension-interaction

# Windows
py -3 -m pip install -U discord-extension-interaction
```

To install the library with discord.py
```commandline
# Linux/macOS
python3 -m pip install -U discord-extension-interaction[discordpy]

# Windows
py -3 -m pip install -U discord-extension-interaction[discordpy]
```

To install the development version, do the following:
```bash
$ git clone https://github.com/gunyu1019/discord-extension-interaction
$ cd discord-extension-interaction
$ python3 -m pip install -U .
```

# Quick Example
```python
from discord.ext import interaction
from discord import Intents

intents = Intents.default()
bot = interaction.Client(global_sync_command=True, intents = intents)


@interaction.command(description="This is ping")
async def ping(ctx: interaction.ApplicationContext):
    await ctx.send("pong!")
    return

bot.add_interaction(ping)
bot.run("TOKEN")
```

You can find more examples in the [examples](https://github.com/gunyu1019/discord-extension-interaction/tree/main/examples) directory.