Skip to content

Commit

Permalink
doc: Update CLOUD_MIGRATE_TO_LITECOMMANDS.md
Browse files Browse the repository at this point in the history
  • Loading branch information
huanmeng-qwq committed Aug 25, 2024
1 parent 1d84fdc commit 2423158
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CLOUD_MIGRATE_TO_LITECOMMANDS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
### 从Cloud迁移到LiteCommands

#### 兼容层

如果你不想迁移,可以安装 [kook-cloud-compatible](https://github.com/huanmeng-qwq/kookbc-cloud-compatible/releases)
插件来允许使用cloud框架注册命令的插件正常运行

### 注解

| Cloud | LiteCommands |
Expand All @@ -9,9 +14,11 @@
| @Argument | @Arg |

### 示例

#### Cloud

```java

@CommandContainer
@CommandPrefix("!")
@CommandMethod("test")
Expand All @@ -24,8 +31,9 @@ public class TestCloudCommand {
```

#### LiteCommands

> Github: [LiteCommands](https://github.com/Rollczi/LiteCommands)
>
>
> IDEA中安装[LiteCommands](https://plugins.jetbrains.com/plugin/20799-litecommands)插件后,可以自动识别LiteCommands的注解,并能够很好的辅助开发。
```java
Expand Down

0 comments on commit 2423158

Please sign in to comment.