use config as arg for function instead of values
This commit is contained in:
parent
c7de4cfbc0
commit
c2e149aa1d
3 changed files with 12 additions and 18 deletions
|
@ -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
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue