Skip to main content
nonebot

nonebot-plugin-slot-machine

✨ NoneBot2 一个老虎机插件 ✨

workflow pypi python nonebot

📖 介绍

一个基于 NoneBot2 的老虎机插件,支持注册金币账户、投注设置、老虎机抽奖、转账、查询,以及内置的“打螺丝”金币获取玩法。

老虎机为 5 行 6 列盘面,包含普通符号、百搭符号和夺宝符号。中奖结果会绘制成图片发送,中奖轮数较多时自动使用合并转发。

💿 安装

使用 nb-cli 安装

在 NoneBot2 项目的根目录下打开命令行,输入以下指令即可安装:

nb plugin install nonebot-plugin-slot-machine
使用包管理器安装

在 NoneBot2 项目的插件目录下打开命令行,根据你使用的包管理器输入相应的安装命令。

pip
pip install nonebot-plugin-slot-machine
pdm
pdm add nonebot-plugin-slot-machine
poetry
poetry add nonebot-plugin-slot-machine
conda
conda install nonebot-plugin-slot-machine

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

"@local" = ["nonebot_plugin_slot_machine"]

⚙️ 配置

本插件会通过 nonebot-plugin-localstore 自动管理数据文件,无需额外配置数据库路径。

需要安装并配置 Milky 适配器:

pip install nonebot-adapter-milky

🎉 使用

在 NoneBot 项目中加载插件:

nonebot.load_plugin("nonebot_plugin_slot_machine")

如果使用 pyproject.toml 加载插件,请在 [tool.nonebot.plugins] 中加入 @local = ["nonebot_plugin_slot_machine"]。

指令

指令 说明
注册老虎机 / 注册 注册账号,每人赠送初始金币
设置投注 <投注大小> <投注倍数> 设置投注,投注大小支持 0.02、0.2、1,倍数为 1-10
开始旋转 按当前投注设置开始抽奖
规则老虎机 / 老虎机规则 / 规则 查看老虎机、夺宝和打螺丝规则
查询老虎机 / 查询 查看金币、抽奖次数、中奖次数和投注设置
转账 <账号> <金额> 向其他已注册账号转账金币
风控状态 查看当前账号是否被风控封号
开始打螺丝 <分钟> 按普通模式立即打工结算
开始打螺丝 <模式> <分钟> 使用指定模式打工,模式:普通、韭菜、牛马、卷王
打螺丝状态 / 螺丝状态 查看体力和打工状态

示例

注册老虎机
设置投注 0.2 5
开始旋转
查询老虎机
转账 123456 10
开始打螺丝 牛马 10

🎰 玩法说明

  • 中奖需要从第一列开始连续命中,同符号可由百搭符号补位。
  • 每次中奖后会消除中奖符号并补充新符号,奖金倍数翻倍,最高 1024 倍。
  • 盘面任意位置出现 3 个夺宝符号可获得免费抽奖机会,超过 3 个时每多 1 个增加 10 次。
  • 打螺丝体力上限为 100,每 30 秒恢复 1 点。
  • 短时间内向同一账号大量转账,或多个账号集中向同一账号汇款,会触发风控并封号一天。

📦 数据存储

插件数据使用 SQLite,并通过 nonebot-plugin-localstore 存放在插件数据目录中。缓存图片会写入插件缓存目录,发送完成后自动删除。

🙏 致谢

Metadata

Release files for nonebot-plugin-slot-machine 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-slot-machine 0.1.3
File Size Uploaded Provenance Actions
nonebot_plugin_slot_machine-0.1.3.tar.gz 1.7 MB Without provenance Details for nonebot_plugin_slot_machine-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-slot-machine 0.1.3
File Interpreter ABI Platform Actions
nonebot_plugin_slot_machine-0.1.3-py3-none-any.whl Python 3 none any Details for nonebot_plugin_slot_machine-0.1.3-py3-none-any.whl

Total release size: 3.4 MB

Release files / nonebot_plugin_slot_machine-0.1.3.tar.gz

Download URL nonebot_plugin_slot_machine-0.1.3.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
82719d75b0a03e5cdf8bb74f84b79476abf3fb4148076cf875051fb07d4067f6
BLAKE2b-256 checksum
How to use checksums
a87f9f7c3b193a3911b95d607944f1d73897aa4815b3e29080ecb761ca71ba6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / nonebot_plugin_slot_machine-0.1.3-py3-none-any.whl

Download URL nonebot_plugin_slot_machine-0.1.3-py3-none-any.whl
Size 1.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
15e55702f4ae031fe88eb37ed7f0e8b945b1ccc087ba53f6804c0020af574f28
BLAKE2b-256 checksum
How to use checksums
66217cb8d33cceb1650bcbbf958210e008d7f322bcc41eb28378cc4e0ae6b48a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for nonebot-plugin-slot-machine 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page