updated example config options + 1 little fix
This commit is contained in:
parent
710a89c282
commit
f274d25822
|
@ -23,7 +23,7 @@ class TelegramBot(Bot):
|
|||
# return when telegram returns an error code
|
||||
if update in [303, 404, 420, 500, 502]:
|
||||
return reports
|
||||
elif isinstance(update, int):
|
||||
if isinstance(update, int):
|
||||
logger.error("Unknown Telegram error code: " + str(update))
|
||||
return reports
|
||||
user.save_seen_tg(update.update_id)
|
||||
|
|
|
@ -10,10 +10,7 @@ port = 80
|
|||
contact = "b3yond@riseup.net"
|
||||
|
||||
[mail]
|
||||
mailserver = "smtp.riseup.net"
|
||||
user = "user"
|
||||
passphrase = "sup3rs3cur3"
|
||||
mbox = "root"
|
||||
mbox_user = "root"
|
||||
|
||||
[database]
|
||||
db_path = "/var/ticketfrei/db.sqlite"
|
||||
|
|
|
@ -27,5 +27,5 @@ def sendmail(to, subject, city=None, body=''):
|
|||
|
||||
# For testing:
|
||||
if __name__ == '__main__':
|
||||
sendmail(config['mail']['contact'], "Test Mail",
|
||||
sendmail(config['web']['contact'], "Test Mail",
|
||||
body="This is a test mail.")
|
||||
|
|
Loading…
Reference in a new issue