mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
echo: fail if configure doesn't work
This commit is contained in:
@@ -6,7 +6,6 @@ it will echo back any message that has non-empty text and also supports the /hel
|
|||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
from threading import Thread
|
|
||||||
|
|
||||||
from deltachat_rpc_client import Bot, DeltaChat, EventType, Rpc, events
|
from deltachat_rpc_client import Bot, DeltaChat, EventType, Rpc, events
|
||||||
|
|
||||||
@@ -76,10 +75,7 @@ def main():
|
|||||||
config = read_config(sys.argv[1])
|
config = read_config(sys.argv[1])
|
||||||
password = create_newemail_dict(config).get("password")
|
password = create_newemail_dict(config).get("password")
|
||||||
email = "echo@" + config.mail_domain
|
email = "echo@" + config.mail_domain
|
||||||
configure_thread = Thread(
|
bot.configure(email, password)
|
||||||
target=bot.configure, kwargs={"email": email, "password": password}
|
|
||||||
)
|
|
||||||
configure_thread.start()
|
|
||||||
bot.run_forever()
|
bot.run_forever()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user