- Added command handler for processing Discord interactions related to lights and switches. - Implemented command registration for light control commands: list, on, off, and toggle. - Created a gRPC client for communicating with the home automation gateway. - Developed application logic for handling light and switch commands, including listing, turning on/off, and toggling lights. - Introduced telemetry setup for OpenTelemetry integration. - Added configuration loading for Discord token, gateway address, and OpenTelemetry endpoint. - Defined core driven ports for interacting with the home automation gateway.
8 lines
53 B
Plaintext
8 lines
53 B
Plaintext
go 1.26
|
|
|
|
use (
|
|
./discord-bot
|
|
./gen
|
|
./ha-gateway
|
|
)
|