Set up webhook through env
This commit is contained in:
parent
9c13206c30
commit
1556a4d362
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -13,9 +13,9 @@ import paho.mqtt.client as mqtt
|
||||||
import paho.mqtt.subscribe as subscribe
|
import paho.mqtt.subscribe as subscribe
|
||||||
import os
|
import os
|
||||||
|
|
||||||
# hunter2
|
|
||||||
token = os.getenv('DISCORD_TOKEN')
|
token = os.getenv('DISCORD_TOKEN')
|
||||||
webhook_url = ""
|
webhook_url = os.getenv('DISCORD_WEBHOOK_URL')
|
||||||
description = 'Bitlair Bot'
|
description = 'Bitlair Bot'
|
||||||
state_template = Template('$topic is now $state')
|
state_template = Template('$topic is now $state')
|
||||||
timezone = pytz.timezone('Europe/Amsterdam')
|
timezone = pytz.timezone('Europe/Amsterdam')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue