Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

20 lines
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('平台客户端开始')