wechaty / matrix-appservice

Wechaty [Matrix] Application Services Bridge
https://matrix.org/docs/projects/bridge/matrix-appservice-wechaty
Apache License 2.0
133 stars 16 forks source link

配置完之后,发送消息给wechaty没有反应,我看wechaty是离线的 #55

Closed yswtrue closed 3 years ago

yswtrue commented 4 years ago

输入!login没有反应,app bridge 已经启动了 http://45.32.57.135:8788 可以打开了 这是配置文件

cat config.yaml 
domain: yswtrue.com 
homeserverUrl: https://matrix.yswtrue.com
registration: wechaty-registration.yaml
cat wechaty-registration.yaml 
id: wechaty
hs_token: 2390bad8ab3fbb1fa870e11ab4ae0e98491d723b75cc7aa779516aec7d7ec521
as_token: 2b9b9c1e62eaf28916870300f5d1a4aaee4ac58671d1d230ecc3834c01803305
namespaces:
  users:
    - exclusive: true
      regex: '@wechaty_.*'
  aliases:
    - exclusive: true
      regex: '#wechaty_.*'
  rooms: []
url: '45.32.57.135:8788'
sender_localpart: wechaty
rate_limited: false
protocols:
  - wechaty
de.sorunome.msc2409.push_ephemeral: false
cat docker-compose.yml
version: '2'
services:
  matrix-appservice-wechaty:
      container_name: matrix-appservice-wechaty
      image: wechaty/matrix-appservice
      volumes:
        - ./config:/data
      networks:
        - default
      environment:
#  - WECHATY_PUPPET_PADPLUS_TOKEN=puppet_padplus_<token>
#  - WECHATY_PUPPET=wechaty-puppet-padplus
        - WECHATY_PUPPET=wechaty-puppet-puppeteer
      command: ["--config", "/data/config.yaml", "--file", "/data/wechaty-registration.yaml"]
      ports:
        - 8788:8788
yswtrue commented 3 years ago
matrix-appservice-wechaty    | [winston] Attempt to write logs with no transports {"message":"172.19.0.1 - - [14/Nov/2020:17:51:07 +0000] \"PUT /transactions/3?access_token=<REDACTED> HTTP/1.1\" 200 2 \"-\" \"Synapse/1.22.1\"\n","level":"info"}
matrix-appservice-wechaty    | 17:51:07 VERB MatrixHandler onEvent({type: "m.room.member"}, {userId: "@yswtrue:yswtrue.com"})
matrix-appservice-wechaty    | 17:51:07 VERB SuperEvent constructor(request[event_id]="$2JoIwugmtOUi4kzIOpOBopT3eD9dn9tZeqY24gbnz8w", context[sender]="@yswtrue:yswtrue.com", appserviceManager, wechatyManager.count()=0)
matrix-appservice-wechaty    | 17:51:07 VERB MatrixHandler process({type: m.room.member})
matrix-appservice-wechaty    | 17:51:07 VERB SuperEvent isRoomInvitation() for event id: $2JoIwugmtOUi4kzIOpOBopT3eD9dn9tZeqY24gbnz8w
matrix-appservice-wechaty    | 17:51:07 SILL SuperEvent isRoomInvitation() -> true
matrix-appservice-wechaty    | 17:51:07 VERB MatrixHandler process() isRoomInvitation() skipped for non-bot user: @wechaty:yswtrue.com"

这是详细的日志输出

huan commented 3 years ago

Will take some time to improve the code when I got time.

Thanks for your issue reporting and logs!

yswtrue commented 3 years ago

image 我打断点出来的matrixBridge.opts是一个字符串 image 应该matrixBridge.registration才是AppServiceRegistration

huan commented 3 years ago

Hi @yswtrue , great to know you are still trying to set this appservice up for your matrix system!

We have some contributors working on this appservice recently, you are welcome to join us if you are interested.

And I'd like to set up a matrix server for providing this service/bridge for the community, do you think it will be useful for your scenario?

yswtrue commented 3 years ago

Hi @yswtrue , great to know you are still trying to set this appservice up for your matrix system!

We have some contributors working on this appservice recently, you are welcome to join us if you are interested.

And I'd like to set up a matrix server for providing this service/bridge for the community, do you think it will be useful for your scenario?

I'd like to join you, and how can I join. And after trial, I think this project has something for improvement