Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

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