from bridge.context import Context, ContextType from bridge.reply import Reply, ReplyType from common.log import logger from config import conf, pconf, plugin_config, available_setting from plugins import PluginManager import time class PlatformClient(): def __init__(self, channel): self.channel = channel self.client_type = channel.channel_type def on_message(self): print('监听消息') def start(channel): global platform_client platform_client = PlatformClient(channel=channel) print('平台客户端开始')