Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

20 rindas
562B

  1. from bridge.context import Context, ContextType
  2. from bridge.reply import Reply, ReplyType
  3. from common.log import logger
  4. from config import conf, pconf, plugin_config, available_setting
  5. from plugins import PluginManager
  6. import time
  7. class PlatformClient():
  8. def __init__(self, channel):
  9. self.channel = channel
  10. self.client_type = channel.channel_type
  11. def on_message(self):
  12. print('监听消息')
  13. def start(channel):
  14. global platform_client
  15. platform_client = PlatformClient(channel=channel)
  16. print('平台客户端开始')