<!ELEMENT extension (chatRoomRobot)+>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT chatRoomRobot (chatRooms+)>
<!ATTLIST chatRoomRobot
id CDATA #REQUIRED
containerFactoryName CDATA #REQUIRED
connectId CDATA #REQUIRED
connectPassword CDATA #IMPLIED
name CDATA #IMPLIED>
The chatRoomRobot extension point.
irc://username@host[:port]
for example: irc://slewis2_@irc.freenode.net
<!ELEMENT chatRooms EMPTY>
<!ATTLIST chatRooms
name CDATA #REQUIRED
password CDATA #IMPLIED>
<extension point="org.eclipse.ecf.presence.bot.chatRoomRobot"> <chatRoomRobot connectId="irc://slewis2_@irc.freenode.net" containerFactoryName="ecf.irc.irclib" id="org.eclipse.ecf.presence.bot.defaultbot"> <chatRooms name="#eclipse-ecf"> </chatRooms> <chatRooms name="#secret-channel" password="secret-password"> </chatRooms> </chatRoomRobot> </extension>Note that to have the chatRoomRobot receive chat room messages and process them, that the chatRoomMessageHandler should also be defined using the id for the chatRoomRobot given above. For example:
<extension point="org.eclipse.ecf.presence.bot.chatRoomMessageHandler"> <handler chatRoomRobotId="org.eclipse.ecf.presence.bot.defaultbot" class="org.eclipse.ecf.presence.bot.DefaultChatRoomMessageHandler"> </handler> </extension>
Copyright (c) 2007 IBM Corporation and others. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0/ SPDX-License-Identifier: EPL-2.0