forked from ticketfrei/ticketfrei
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
|
# return when telegram returns an error code
|
||||||
if update in [303, 404, 420, 500, 502]:
|
if update in [303, 404, 420, 500, 502]:
|
||||||
return reports
|
return reports
|
||||||
elif isinstance(update, int):
|
if isinstance(update, int):
|
||||||
logger.error("Unknown Telegram error code: " + str(update))
|
logger.error("Unknown Telegram error code: " + str(update))
|
||||||
return reports
|
return reports
|
||||||
user.save_seen_tg(update.update_id)
|
user.save_seen_tg(update.update_id)
|
||||||
|
|
|
@ -10,10 +10,7 @@ port = 80
|
||||||
contact = "b3yond@riseup.net"
|
contact = "b3yond@riseup.net"
|
||||||
|
|
||||||
[mail]
|
[mail]
|
||||||
mailserver = "smtp.riseup.net"
|
mbox_user = "root"
|
||||||
user = "user"
|
|
||||||
passphrase = "sup3rs3cur3"
|
|
||||||
mbox = "root"
|
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
db_path = "/var/ticketfrei/db.sqlite"
|
db_path = "/var/ticketfrei/db.sqlite"
|
||||||
|
|
|
@ -27,5 +27,5 @@ def sendmail(to, subject, city=None, body=''):
|
||||||
|
|
||||||
# For testing:
|
# For testing:
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
sendmail(config['mail']['contact'], "Test Mail",
|
sendmail(config['web']['contact'], "Test Mail",
|
||||||
body="This is a test mail.")
|
body="This is a test mail.")
|
||||||
|
|
Loading…
Reference in a new issue