mirror of
https://github.com/dnslin/aria2bot.git
synced 2026-01-10 11:52:20 +08:00
16 lines
340 B
Python
16 lines
340 B
Python
"""Aria2 Telegram Bot - Control aria2 via Telegram"""
|
|
from pathlib import Path
|
|
from src.telegram import run
|
|
|
|
|
|
def print_banner():
|
|
"""打印启动横幅"""
|
|
banner_path = Path(__file__).parent / "banner.txt"
|
|
if banner_path.exists():
|
|
print(banner_path.read_text())
|
|
|
|
|
|
if __name__ == "__main__":
|
|
print_banner()
|
|
run()
|