# ASFBuffBot **Repository Path**: icorecool/ASFBuffBot ## Basic Information - **Project Name**: ASFBuffBot - **Description**: Buff自动发货机器人 - **Primary Language**: C# - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2024-07-04 - **Last Updated**: 2024-07-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ASFBuffBot [![Codacy Badge](https://app.codacy.com/project/badge/Grade/45b50288f8b14ebda915ed89e0382648)](https://www.codacy.com/gh/chr233/ASFBuffBot/dashboard) ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/chr233/ASFBuffBot/autobuild.yml?logo=github) [![License](https://img.shields.io/github/license/chr233/ASFBuffBot?logo=apache)](https://github.com/chr233/ASFBuffBot/blob/master/license) [![GitHub Release](https://img.shields.io/github/v/release/chr233/ASFBuffBot?logo=github)](https://github.com/chr233/ASFBuffBot/releases) [![GitHub Release](https://img.shields.io/github/v/release/chr233/ASFBuffBot?include_prereleases&label=pre-release&logo=github)](https://github.com/chr233/ASFBuffBot/releases) ![GitHub last commit](https://img.shields.io/github/last-commit/chr233/ASFBuffBot?logo=github) ![GitHub Repo stars](https://img.shields.io/github/stars/chr233/ASFBuffBot?logo=github) [![GitHub Download](https://img.shields.io/github/downloads/chr233/ASFBuffBot/total?logo=github)](https://img.shields.io/github/v/release/chr233/ASFBuffBot) [![Bilibili](https://img.shields.io/badge/bilibili-Chr__-00A2D8.svg?logo=bilibili)](https://space.bilibili.com/5805394) [![Steam](https://img.shields.io/badge/steam-Chr__-1B2838.svg?logo=steam)](https://steamcommunity.com/id/Chr_) [![Steam](https://img.shields.io/badge/steam-donate-1B2838.svg?logo=steam)](https://steamcommunity.com/tradeoffer/new/?partner=221260487&token=xgqMgL-i) [![爱发电](https://img.shields.io/badge/爱发电-chr__-ea4aaa.svg?logo=github-sponsors)](https://afdian.net/@chr233) ## EULA > 请不要使用本插件来进行不受欢迎的行为, 包括但不限于: 刷好评, 发布广告 等. > > 详见 [插件配置说明](#插件配置说明) ## 安装方式 ### 初次安装 / 手动更新 1. 从 [GitHub Releases](https://github.com/chr233/ASFBuffBot/releases) 下载插件的最新版本 2. 解压后将 `ASFBuffBot.dll` 丢进 `ArchiSteamFarm` 目录下的 `plugins` 文件夹 3. 重新启动 `ArchiSteamFarm` , 使用命令 `ABB` 来检查插件是否正常工作 4. 访问 [buff.163.com](https://buff.163.com) 复制 Cookies, 并使用命令 `UPDATECOOKIES xxx` 更新 Cookies, xxx 为网站的 Cookies ### 使用命令升级插件 > 可以使用插件自带的命令自带更新插件 > ASF 版本升级有可能出现不兼容情况, 如果发现插件无法加载请尝试更新 ASF - `ABBVERSION` / `ABBV` 检查插件更新 - `ABBUPDATE` / `ABBU` 自动更新插件到最新版本 (需要手动重启 ASF) ### 更新日志 | ASFBuffBot 版本 | 适配 ASF 版本 | 更新说明 | | -------------------------------------------------------------------- | :-----------: | ---------------------- | | [1.0.4.1](https://github.com/chr233/ASFBuffBot/releases/tag/1.0.4.1) | 5.4.5.2 | 支持多账号, bug 修复 | | [1.0.0.0](https://github.com/chr233/ASFBuffBot/releases/tag/1.0.0.0) | 5.4.4.5 | 第一个版本, 单账号模式 | ## 插件配置说明 > 本插件的配置不是必须的, 保持默认配置即可使用大部分功能 ASF.json ```json { //ASF 配置 "CurrentCulture": "...", "IPCPassword": "...", "...": "...", //ASFBuffBot 配置 "ASFBuffBot": { "Statistic": true, "DisabledCmds": ["foo", "bar"], "BuffCheckInterval": 180, "BotInterval": 30, "CustomUserAgent": null } } ``` | 配置项 | 类型 | 默认值 | 说明 | | ------------------- | ------ | ------ | --------------------------------------------------------------------------------- | | `Statistic` | bool | `true` | 是否允许发送统计数据, 仅用于统计插件用户数量, 不会发送任何其他信息 | | `DisabledCmds` | list | `null` | 在此列表中的命令将会被禁用\*\* , **不区分大小写**, 仅对 `ASFBuffBot` 中的命令生效 | | `BuffCheckInterval` | int | `180` | 每一轮 Buff 发货检查的周期, 单位秒, 访问频率过快容易被 ban | | `BotInterval` | int | `30` | 在一轮发货检查中每个机器人的检查间隔, 单位秒 | | `CustomUserAgent` | string | `null` | 自定义 `User-Agent` 用于向 Buff 发送请求 | > \*\* `DisabledCmds` 配置说明: 该项配置**不区分大小写**, 仅对 `ASFBuffBot` 中的命令有效 > 例如配置为 `["foo","BAR"]` , 则代表 `FOO` 和 `BAR` 命令将会被禁用 > 如果无需禁用任何命令, 请将此项配置为 `null` 或者 `[]` > 当某条命令被禁用时, 仍然可以使用 `ABB.xxx` 的形式调用被禁用的命令, 例如 `ABB.UPDATECOOKIES` ## 插件指令说明 ### 插件更新 | 命令 | 缩写 | 权限 | 说明 | | ------------ | ------ | --------------- | ------------------------------------------------- | | `ASFBUFFBOT` | `ABB` | `FamilySharing` | 查看 ASFBuffBot 的版本 | | `ABBVERSION` | `ABBV` | `Operator` | 检查 ASFBuffBot 是否为最新版本 | | `ABBUPDATE` | `ABBU` | `Owner` | 自动更新 ASFBuffBot 到最新版本 (需要手动重启 ASF) | ### 功能指令 | 命令 | 缩写 | 权限 | 说明 | | ------------------------------ | ----- | -------- | -------------------------------------------------------- | | `VALIDCOOKIES [Bots]` | `VC` | `Master` | 手动测试当前设置的 Cookies 是否有效 | | `UPDATECOOKIES cookies` | `UC` | `Master` | 手动更新 Cookies, 自动根据 Buff 账号信息绑定到对应机器人 | | `UPDATECOOKIESBOT Bot cookies` | `UCB` | `Master` | 手动更新 Cookies, 需要指定要绑定的机器人 | | `COOKIESSTATUS [Bots]` | `CS` | `Master` | 查看机器人 Cookies 状态 |