sender = roomContainer.getChatRoomMessageSender();
}
public void handleMessageEvent(IIMMessageEvent event) {
if (event instanceof IChatRoomMessageEvent) {
IChatRoomMessageEvent roomEvent = (IChatRoomMessageEvent) event;
IChatRoomMessage message = roomEvent.getChatRoomMessage();
List commands = bot.getCommands();
for(int i = 0; i < commands.size(); i++) {
ICommandEntry entry = (ICommandEntry) commands.get(i);
entry.execute(message.getMessage(), sender);
}