+ when bot fail then send mail

This commit is contained in:
urinx
2017-05-25 16:21:48 +08:00
parent 97f347b8f8
commit 123993c3cc
9 changed files with 70 additions and 14 deletions
@@ -3,3 +3,4 @@ flask
requests
requests_toolbelt
pymysql
sendgrid
@@ -35,6 +35,11 @@ user = root
passwd = root
database = wechat
[sendgrid]
api_key = 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
from_email = wxbot@wechat.com
to_email = xxx@example.com
[loggers]
keys = root,WeChat