A Discord application to control smart lights.
A succinctly written discord application to interface with supported smart lights on a network.
Fetch dependencies:
pip install -r requirements.txt
Create config.yml
in the repo's root, and populate as follows:
# Discord
app_id: # developer console
public_key: # developer console
perms_int: # developer console
token: # developer console
client_id: # developer console
client_secret: # developer console
guild_id: # server settings in discord
#
channel_scope:
- channel-name
- other-channel-name
# Phillips Hue
bridge_ip : # see references in main.py
username : # generated by bridge
client_key : # generated by bridge
mapping : # slash-command : grouped-light-rid
lv : # use dev_tools
You can ensure your bot token is active or generate a new one here.
See the Discord.py API docs to implement new features.
Log in bot indefinitely:
./main.py run
Info message:
./main.py --help
If you think you have a cool smart light control idea, submit a PR 🤓
Thanks to Jean Choi, my partner, for being so supportive all the time.
See License for the full license text.
This repository was authored by Isaac Yep.