mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-12-05 03:10:41 +08:00
20 lines
501 B
Python
20 lines
501 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
# notify.py: Automatic management tool for an arch repo.
|
|
# This file is part of Buildbot by JerryXiao
|
|
|
|
|
|
import logging
|
|
from utils import background, print_exc_plus, configure_logger
|
|
import subprocess
|
|
|
|
logger = logging.getLogger(f'buildbot.{__name__}')
|
|
|
|
# wip
|
|
# does nothing
|
|
@background
|
|
def send(content):
|
|
try:
|
|
subprocess.run(['python', 'tgapi.py', str(content)], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
|
except:
|
|
pass
|