Support notify in config
This commit is contained in:
parent
384385c24b
commit
c6c2950ed6
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
"url": "",
|
"url": "",
|
||||||
"webhook": "",
|
"webhook": "",
|
||||||
|
"notify": "",
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,14 @@ baseurl = config['url']
|
|||||||
webhook = config['webhook']
|
webhook = config['webhook']
|
||||||
|
|
||||||
message = args.message
|
message = args.message
|
||||||
notify = args.notify
|
|
||||||
|
notify = None
|
||||||
|
if args.notify is None:
|
||||||
|
if config.get('notify') is not None:
|
||||||
|
notify = config.get('notify')
|
||||||
|
else:
|
||||||
|
notify = args.notify
|
||||||
|
|
||||||
ran = False
|
ran = False
|
||||||
|
|
||||||
if args.pid != 0:
|
if args.pid != 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user