Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/ding-dong-bot-oop.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ async def on_message(self, msg: Message):

# reply the image
image_filebox = FileBox.from_file('./hd-image.jpg')
await community.say(image_filebox)
await room.say(image_filebox)
# await msg.say(hd_file_box)

elif msg_type==MessageType.MESSAGE_TYPE_URL:
content = await msg.to_url_link()
await community.say(content)
await room.say(content)

# pylint: disable=C0301
elif msg_type in [MessageType.MESSAGE_TYPE_AUDIO, MessageType.MESSAGE_TYPE_ATTACHMENT, MessageType.MESSAGE_TYPE_VIDEO]:
Expand Down