Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

专为AllayMC设计的下一代基岩版服务器管理解决方案,提供安全的无第三方QQ机器人依赖管理体验。

> [!NOTE]
> 由于技术原因,暂时无法为Allay提供命令回调,请等待后续更新.
>
## 🌟 核心优势

| 特性 | 传统方案 | HuHoBot |
Expand Down
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ plugins {
id("com.github.johnrengelman.shadow") version "8.1.1"
}

group = "cn.huohuas001.huHoBot"
group = "cn.huohuas001.huhobot"
description = "HuHoBot Allay Adapter"
version = "0.0.10"
version = "0.1.0"

java {
toolchain {
Expand All @@ -21,7 +21,7 @@ repositories {
}

dependencies {
compileOnly(group = "org.allaymc.allay", name = "api", version = "0.13.0")
compileOnly(group = "org.allaymc.allay", name = "api", version = "0.14.0")
compileOnly(group = "org.projectlombok", name = "lombok", version = "1.18.34")

implementation(group = "org.java-websocket", name = "Java-WebSocket", version = "1.5.4")
Expand Down
40 changes: 0 additions & 40 deletions src/main/java/cn/huohuas001/huHoBot/Api/BotCustomCommand.java

This file was deleted.

18 changes: 12 additions & 6 deletions src/main/java/cn/huohuas001/huHoBot/Command/HuHoBotCommand.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cn.huohuas001.huHoBot.Command;
package cn.huohuas001.huhobot.command;

import cn.huohuas001.huHoBot.HuHoBot;
import cn.huohuas001.huHoBot.NetEvent.bindRequest;
import cn.huohuas001.huhobot.HuHoBot;
import cn.huohuas001.huhobot.websocket.handler.BindRequest;
import org.allaymc.api.command.Command;
import org.allaymc.api.command.tree.CommandTree;
import org.allaymc.api.permission.PermissionGroups;
Expand All @@ -18,7 +18,7 @@ public void prepareCommandTree(CommandTree tree) {
tree.getRoot()
.key("reconnect")
.exec(context -> {
if (HuHoBot.getPlugin().reconnect()) {
if (HuHoBot.getInstance().reconnect()) {
context.addOutput(TextFormat.GOLD + "重连机器人成功.");
} else {
context.addOutput(TextFormat.DARK_RED + "重连机器人失败:已在连接状态.");
Expand All @@ -29,7 +29,7 @@ public void prepareCommandTree(CommandTree tree) {
.root()
.key("disconnect")
.exec(context -> {
if (HuHoBot.getPlugin().disConnectServer()) {
if (HuHoBot.getInstance().disConnectServer()) {
context.addOutput(TextFormat.GOLD + "已断开机器人连接.");
}
return context.success();
Expand All @@ -39,7 +39,7 @@ public void prepareCommandTree(CommandTree tree) {
.str("code")
.exec(context -> {
String Code = context.getResult(1);
bindRequest obj = HuHoBot.getPlugin().bindRequestObj;
BindRequest obj = HuHoBot.getInstance().getBindRequest();
if (obj.confirmBind(Code)) {
context.addOutput(TextFormat.GOLD + "已向服务器发送确认绑定请求,请等待服务端下发配置文件.");
} else {
Expand All @@ -63,6 +63,12 @@ public void prepareCommandTree(CommandTree tree) {
HuHoBot.reloadConfig();
context.addOutput(TextFormat.GOLD + "已重载配置文件.");
return context.success();
})
.root()
.key("test")
.exec(ctx -> {
HuHoBot.getInstance().runCommand("version", "");
return ctx.success();
});

}
Expand Down

This file was deleted.

191 changes: 0 additions & 191 deletions src/main/java/cn/huohuas001/huHoBot/HuHoBot.java

This file was deleted.

Loading
Loading