Forgot the bind port
All checks were successful
git.cronocide.net/bluebubbles-bot/pipeline/head This commit looks good
All checks were successful
git.cronocide.net/bluebubbles-bot/pipeline/head This commit looks good
This commit is contained in:
parent
ac49a9f668
commit
ed235d0af9
@ -37,6 +37,8 @@ The following environment variables must be set to configure the bot:
|
||||
|
||||
`BB_SERVER_PASSWORD` : The password to the BlueBubbles server.
|
||||
|
||||
`BIND_PORT` : The port to bind to to receive callbacks from the BlueBubbles server.
|
||||
|
||||
`USE_PRIVATE_API` : Whether or not to use the Private API in BlueBubbles. Default is `false`
|
||||
|
||||
|
||||
@ -44,4 +46,3 @@ The following environment variables must be set to configure the bot:
|
||||
## Justification
|
||||
|
||||
Initially all I wanted to do was translate Apple Music links to Spotify links and vice-versa. But building platforms is more fun than building tools.
|
||||
|
||||
|
@ -60,7 +60,7 @@ if __name__ == '__main__':
|
||||
logging.propagate=True
|
||||
|
||||
# Check for missing environment variables
|
||||
for required_var in ['BB_SERVER_URL','BB_SERVER_PASSWORD'] :
|
||||
for required_var in ['BB_SERVER_URL','BB_SERVER_PASSWORD','BIND_PORT'] :
|
||||
if required_var not in os.environ.keys() :
|
||||
log.error(f'Missing required ENV variable {required_var}')
|
||||
exit(1)
|
||||
@ -148,4 +148,5 @@ if __name__ == '__main__':
|
||||
send_message(response)
|
||||
return content
|
||||
|
||||
uvicorn.run(bot,host='0.0.0.0', port=8080)
|
||||
bind_port = int(os.environ['BIND_PORT'])
|
||||
uvicorn.run(bot,host='0.0.0.0', port=bind_port)
|
||||
|
Loading…
Reference in New Issue
Block a user