Repository navigation
Add original Minecraft plugin bridge and structured config forms - #4
Open
EndlessPixel wants to merge 2 commits into
Open
EndlessPixel wants to merge 2 commits into
EndlessPixel wants to merge 2 commits into
Conversation
Serve the original EasyBot plugin protocol (JSON over WebSocket, Hello/Identify/HeartBeat/Packet/CallBack) on /bridge with per-server token authentication, observed connection status, and SYNC_MESSAGE / SEND_TO_CHAT forwarding between Minecraft servers and OneBot 11 groups. Server tokens are generated with the record and can be rotated via POST /api/servers/{id}/token.
Edit adapter, server and sync-rule settings through real form controls instead of raw JSON. Fix the WebSocket upgrade failing because the response recorder hid http.Hijacker, and pin the SQLite pool to one connection so the WAL pragmas apply to every write and SQLITE_BUSY no longer appears under concurrent API and log writes.
A few utility classes now use Tailwind v4 spacing shorthand instead of arbitrary values; the rendered sizes are identical.
Ftimever
self-requested a review
November 8, 2026 05:05
Member
|
我们或许不必参考原有op码实现 |
Author
|
确实哦😐,我感觉自己实现功能还更好一些,功能可扩展性也更好
This email was sent by system_mini via Outlook.
…________________________________
From: Future ***@***.***>
Sent: Sunday, 08 November 2026 13:08:03
To: EasybotCE/Core ***@***.***>
Cc: EndlessPixel ***@***.***>; Author ***@***.***>
Subject: Re: [EasybotCE/Core] Add original Minecraft plugin bridge and structured config forms (PR #4)
[https://avatars.githubusercontent.com/u/209984517?s=20&v=4]Ftimever left a comment (EasybotCE/Core#4)<#4 (comment)>
我们或许不必参考原有op码实现
—
Reply to this email directly, view it on GitHub<#4?email_source=notifications&email_token=BLJXSRGEOZSRDAF2R5SDDBD5X75THA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMNZRG42TMMJRGA22M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-6717561105>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BLJXSRGXTL3DHFN7FXRV57L5X75THAVCNFSNUABGKJSXA33TNF2G64TZHMYTINBRHA2DOOBYGY5US43TOVSTWNRSGY3TAOJTHAYDDILWAI>.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS<https://github.com/notifications/mobile/ios/BLJXSRH3UIMXDBJ63YMFDXT5X75THA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMNZRG42TMMJRGA22M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG> and Android<https://github.com/notifications/mobile/android/BLJXSRG3G5CLIGEBGMNO56L5X75THA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMNZRG42TMMJRGA22M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA>. Download it today!
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Contributor
|
等待你解决冲突,加油! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
/bridge(JSON over WebSocket, integerop, snake_case fields):Hello→Identify→IdentifySuccess, thenPacket/CallBackwithexec_op.servers.detail.token; tokens are generated with the record and can be rotated viaPOST /api/servers/{id}/token.GET /api/bridge/status(never derived from theenabledflag).SYNC_MESSAGE→ OneBot 11 group, group message → pluginSEND_TO_CHAT, with a 5s echo window so a two-way rule cannot loop.ConfigForm.vue: adapter, server and sync-rule settings are edited through real form controls instead of a raw JSON textarea. Adapters and servers are dropdowns in the sync-rule form.Fixes
statusRecorderhidhttp.Hijacker; it now forwardsHijack/Flush/Unwrap.SQLITE_BUSYappeared when the async log writer raced API writes. The SQLite pool is pinned to one connection so the WAL andbusy_timeoutpragmas apply to every statement.Verification
go vet ./...andgo test ./...pass. Bridge tests cover handshake, invalid-token rejection, chat forwarding, echo suppression and thePLAYER_JOINcallback.npm run buildpasses (vue-tscincluded).SYNC_MESSAGEproducedsend_group_msgwith[演示服 Bridge] Steve: ..., andPOST /api/bridge/{id}/sendreached the plugin asSEND_TO_CHAT.Not included
EasyBot.Bridge.decompiled.csin the EasyBot-Recovered repository.detailshape is not defined by any runtime yet.