- 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.
5 lines
109 B
Plaintext
5 lines
109 B
Plaintext
DISCORD_TOKEN=your-bot-token-here
|
|
GUILD_ID=your-guild-id-here
|
|
HA_GATEWAY_ADDR=localhost:50051
|
|
OTEL_ENDPOINT=
|