NoneBotNoneBotHome
  • Next
  • 指南

    安装

    安装 NoneBot CLI

    创建项目

    创建 NoneBot 项目

    启动 Bot

    启动 Bot

    项目管理

    项目管理

    CLI 自身管理

    CLI 自身管理

    项目脚本配置

    项目脚本配置

    CLI 插件配置

    CLI 插件配置

    Shell 自动补全

    Shell 自动补全

  • API
  • NoneBot
NoneBotNoneBot
  • 指南
  • API
  • NoneBot
NoneBotNoneBot
  • nb_cli.compat
  • nb_cli.consts
  • nb_cli.exceptions
  • nb_cli.extensions
  • nb_cli.i18n
  • nb_cli
  • cli
  • config
  • handlers
    • nb_cli.handlers.adapter
    • nb_cli.handlers.data
    • nb_cli.handlers.driver
    • nb_cli.handlers
    • nb_cli.handlers.meta
    • nb_cli.handlers.pip
    • nb_cli.handlers.plugin
    • nb_cli.handlers.process
    • nb_cli.handlers.project
    • nb_cli.handlers.reloader
    • nb_cli.handlers.script
    • nb_cli.handlers.signal
    • nb_cli.handlers.store
    • nb_cli.handlers.venv
  • log

nb_cli.handlers.signal

def install_signal_handler()#

  • 参数

    empty

  • 返回

    • None

def handle_signal(signum, frame)#

  • 参数

    • signum (int)

    • frame (FrameType | None)

  • 返回

    • None

def register_signal_handler(handler)#

  • 参数

    • handler ((int, FrameType | None) -> None)
  • 返回

    • None

def remove_signal_handler(handler)#

  • 参数

    • handler ((int, FrameType | None) -> None)
  • 返回

    • None

def shield_signals()#

  • 参数

    empty

  • 返回

    • Generator[None, None, None]
Edit this page
Previous
« nb_cli.handlers.script
Next
nb_cli.handlers.store »
  • def install_signal_handler()
  • def handle_signal(signum, frame)
  • def register_signal_handler(handler)
  • def remove_signal_handler(handler)
  • def shield_signals()

Footer

NoneBotNoneBot

CLI for NoneBot 2

GitHub

Learn

  • 介绍
  • 安装

NoneBot Team

  • NoneBot V1
  • NoneBot V2

Copyright © 2025 NoneBot. All rights reserved.Powered by

Deployed by