未验证 提交 eac9ec21 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓) 提交者: GitHub

Merge pull request #1344 from lijiarui/room-event-not-fired

add log as #1342
......@@ -124,6 +124,7 @@ bot
inviteeList.map(c => c.name()).join(','),
inviter.name(),
)
console.log('bot room-join room id:', room.id)
const topic = await room.topic()
room.say(`welcome to ${topic}!`, inviteeList[0])
})
......@@ -245,7 +246,8 @@ bot
/**
* create the ding room
*/
await createDingRoom(from)
const newRoom = await createDingRoom(from)
console.log('createDingRoom id:', newRoom.id)
/**
* listen events from ding room
*/
......@@ -282,6 +284,7 @@ async function manageDingRoom() {
inviteeList.map(c => c.name()).join(', '),
inviter.name(),
)
console.log('room.on(join) id:', this.id)
checkRoomJoin.call(this, room, inviteeList, inviter)
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册