Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chr233 committed Jan 2, 2024
1 parent 1968cd1 commit cb2a1dd
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 35 deletions.
9 changes: 0 additions & 9 deletions ASFTradeExtension/ASFTradeExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,6 @@ public Task OnASFInit(IReadOnlyDictionary<string, JToken>? additionalConfigPrope

var sb = new StringBuilder();

//使用协议
if (!Config.EULA)
{
sb.AppendLine();
sb.AppendLine(Langs.Line);
sb.AppendLineFormat(Langs.EulaWarning, Name);
sb.AppendLine(Langs.Line);
}

if (Config.MaxItemPerTrade < byte.MaxValue)
{
Config.MaxItemPerTrade = byte.MaxValue;
Expand Down
6 changes: 0 additions & 6 deletions ASFTradeExtension/Data/PluginConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ namespace ASFTradeExtension.Data;
/// </summary>
public sealed record PluginConfig
{
/// <summary>
/// 是否同意使用协议
/// </summary>
[JsonProperty(Required = Required.DisallowNull)]
public bool EULA { get; set; } = true;

/// <summary>
/// 启用统计信息
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion ArchiSteamFarm
Submodule ArchiSteamFarm updated 206 files
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>1.0.8.0</Version>
<Version>1.0.9.0</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down
29 changes: 11 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,13 @@ Not compatible with the common version of ASF currently, use generic version of
### 更新日志

| ASFTradeExtension 版本 | 适配 ASF 版本 | 更新说明 |
| --------------------------------------------------------------------------- | :-----------: | --------------------------------- |
| [1.0.8.0](https://github.com/chr233/ASFTradeExtension/releases/tag/1.0.8.0) | 5.4.10.3 | ASF -> 5.4.10.3 |
| [1.0.7.0](https://github.com/chr233/ASFTradeExtension/releases/tag/1.0.7.0) | 5.4.9.3 | ASF -> 5.4.9.3 |
| [1.0.6.1](https://github.com/chr233/ASFTradeExtension/releases/tag/1.0.6.1) | 5.4.8.3 | 修改了一些代码, 卡牌交易功能有待测试 |
| [1.0.2.0](https://github.com/chr233/ASFTradeExtension/releases/tag/1.0.2.0) | 5.4.4.5 | Bug 修复 |
| [1.0.0.0](https://github.com/chr233/ASFTradeExtension/releases/tag/1.0.0.0) | 5.4.2.13 | 第一个版本 |
| --------------------------------------------------------------------------- | :-----------: | ------------------------------------ |
| [1.0.9.0](https://github.com/chr233/ASFTradeExtension/releases/tag/1.0.9.0) | 5.5.0.11 | ASF -> 5.5.0.11, 新的缓存机制 |
| [1.0.8.0](https://github.com/chr233/ASFTradeExtension/releases/tag/1.0.8.0) | 5.4.10.3 | ASF -> 5.4.10.3 |
| [1.0.7.0](https://github.com/chr233/ASFTradeExtension/releases/tag/1.0.7.0) | 5.4.9.3 | ASF -> 5.4.9.3 |
| [1.0.6.1](https://github.com/chr233/ASFTradeExtension/releases/tag/1.0.6.1) | 5.4.8.3 | 修改了一些代码, 卡牌交易功能有待测试 |
| [1.0.2.0](https://github.com/chr233/ASFTradeExtension/releases/tag/1.0.2.0) | 5.4.4.5 | Bug 修复 |
| [1.0.0.0](https://github.com/chr233/ASFTradeExtension/releases/tag/1.0.0.0) | 5.4.2.13 | 第一个版本 |

<details>
<summary>历史版本</summary>
Expand Down Expand Up @@ -94,15 +95,7 @@ ASF.json
| `EULA` | bool | `true` | 是否同意 [EULA](#EULA)\* |
| `Statistic` | bool | `true` | 是否允许发送统计数据, 仅用于统计插件用户数量, 不会发送任何其他信息 |
| `MaxItemPerTrade` | ushort | `255` | 单个交易最多物品数量, ASF 的默认值是 255, 如果报价中的物品超过此数量会自动拆分成多个报价 |

> \* 同意 [EULA](#EULA) 后, ASFTradeExtension 将会开放全部命令
>
> \* 禁用 [EULA](#EULA) 后, ASFTradeExtension 将无法使用大部分命令
>
> \*\* `DisabledCmds` 配置说明: 该项配置**不区分大小写**, 仅对 `ASFTradeExtension` 中的命令有效
> 例如配置为 `["foo","BAR"]` , 则代表 `FOO``BAR` 命令将会被禁用
> 如果无需禁用任何命令, 请将此项配置为 `null` 或者 `[]`
> 当某条命令被禁用时, 仍然可以使用 `ATE.xxx` 的形式调用被禁用的命令, 例如 `ATE.FULLSETLIST`
| `CacheTTL` | ushort | `600` | 库存缓存过期时间, 单位秒, 缓存未过期也可使用命令 `RELOADCACHE` 强制刷新缓存 |

## 插件指令说明

Expand All @@ -114,10 +107,10 @@ ASF.json

### 卡牌交易

| 命令 | 缩写 | 权限 | 说明 |
| ---------------------------------------------- | ------ | ---------- | ------------------------------------------------------ |
| 命令 | 缩写 | 权限 | 说明 |
| ---------------------------------------------- | ------ | ---------- | ------------------------------------------------------------ |
| `FULLSETLIST [Bots] [Config]` | `FSL` | `Operator` | 显示卡牌套数信息, 可用参数 \[-page 页码\] \[-line 显示行数\] |
| `FULLSET [Bots] <appIds>` | `FS` | `Operator` | 显示指定 App 的卡牌套数信息 |
| `FULLSET [Bots] <appIds>` | `FS` | `Operator` | 显示指定 App 的卡牌套数信息 |
| `SENDCARDSET [Bots] AppId SetCount TradeLink` | `SCS` | `Master` | 向指定交易链接发送指定`SetCount`套指定`AppId`的卡牌 |
| `2SENDCARDSET [Bots] AppId SetCount TradeLink` | `2SCS` | `Master` |`SENDCARDSET`, 发送交易后自动确认交易 (需要配置 2FA) |

Expand Down

0 comments on commit cb2a1dd

Please sign in to comment.