Skip to content

Commit cda9d58

Browse files
committed
plugins: support wechaty channel
1 parent 02cd553 commit cda9d58

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def run():
1414
# create channel
1515
channel_name=conf().get('channel_type', 'wx')
1616
channel = channel_factory.create_channel(channel_name)
17-
if channel_name=='wx':
17+
if channel_name in ['wx','wxy']:
1818
PluginManager().load_plugins()
1919

2020
# startup channel

channel/wechat/wechaty_channel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ async def main(self):
4141
config = conf()
4242
token = config.get('wechaty_puppet_service_token')
4343
os.environ['WECHATY_PUPPET_SERVICE_TOKEN'] = token
44+
os.environ['WECHATY_LOG']="warn"
45+
# os.environ['WECHATY_PUPPET_SERVICE_ENDPOINT'] = '127.0.0.1:9001'
4446
self.bot = Wechaty()
4547
self.bot.on('login', self.on_login)
4648
self.bot.on('message', self.on_message)

0 commit comments

Comments
 (0)