buildbot/notify.py

17 lines
399 B
Python
Raw Normal View History

2019-09-05 22:42:08 +08:00
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# notify.py: Automatic management tool for an arch repo.
# This file is part of Buildbot by JerryXiao
2019-09-08 14:08:08 +08:00
from utils import background
2019-09-08 14:06:30 +08:00
import subprocess
2019-09-05 22:42:08 +08:00
# wip
# does nothing
@background
def send(content):
2019-09-08 14:06:30 +08:00
try:
subprocess.run(['python', 'tgapi.py', str(content)], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
except:
pass