refactor: modernize codebase for Go 1.26 and fix adapter issues
- Upgrade Go version from 1.24 to 1.26.1 with updated dependencies
- Replace interface{} with any type throughout codebase
- Add message deduplication in OneBot11 adapter to prevent duplicate event processing
- URL-encode access token in WebSocket connections to handle special characters
- Remove duplicate bot startup hooks in DI providers (now handled by botManager.StartAll)
- Use slices.Clone and errgroup.Go patterns for cleaner concurrent code
- Apply omitzero JSON tags for optional fields (Go 1.24+ feature)
This commit is contained in:
@@ -48,10 +48,10 @@ enabled = true
|
||||
|
||||
[bots.onebot11]
|
||||
connection_type = "ws"
|
||||
self_id = "123456789"
|
||||
self_id = "3177182228"
|
||||
nickname = "TestBot"
|
||||
ws_url = "ws://192.168.10.148:3001"
|
||||
access_token = "hDeu66@_DDhgMf<9"
|
||||
ws_url = "ws://127.0.0.1:3001"
|
||||
access_token = "]W4cjp#9W3l:p4_r"
|
||||
timeout = 30
|
||||
heartbeat = 30
|
||||
reconnect_interval = 5
|
||||
|
||||
Reference in New Issue
Block a user