use config as arg for function instead of values

This commit is contained in:
Jean-Marie Mineau 2021-10-06 17:03:02 +02:00
parent c7de4cfbc0
commit c2e149aa1d
No known key found for this signature in database
GPG key ID: 67486F107F62E9E9
3 changed files with 12 additions and 18 deletions

View file

@ -17,10 +17,7 @@ async def __main():
bot_corout = send_messages(
message_queue,
config.username,
config.homeserver,
config.password,
config.alert_rooms
config
)
format_corout = format_alerts(
alert_queue,
@ -28,8 +25,7 @@ async def __main():
)
webhook_corout = run_webhook(
alert_queue,
config.host,
config.port
config
)