Feature: 在 Windows 上处理 SIGBREAK 信号 (#1836)

This commit is contained in:
uy/sun
2023-03-24 11:47:02 +08:00
committed by GitHub
parent d4da953ad8
commit 00686380b8
2 changed files with 7 additions and 0 deletions

View File

@ -4,6 +4,8 @@ FrontMatter:
sidebar_position: 9
description: nonebot.consts 模块
"""
import os
import sys
from typing import Literal
# used by Matcher
@ -54,3 +56,5 @@ FULLMATCH_KEY: Literal["_fullmatch"] = "_fullmatch"
"""响应触发完整消息 key"""
KEYWORD_KEY: Literal["_keyword"] = "_keyword"
"""响应触发关键字 key"""
WINDOWS = sys.platform.startswith("win") or (sys.platform == "cli" and os.name == "nt")