Class Hook_chat_bot_default

Description

Located in /sources/hooks/modules/chat_bots/default.php (line 21)


	
			
Method Summary
?string handle_commands (AUTO_LINK $room_id, string $command)
Methods
handle_commands (line 31)

Handle hooks supported bot commands. Note multiple bots may support the same commands, and all respond. It is recommended all bots support the command 'help'.

  • return: Bot reply (NULL: bot does not handle the command)
?string handle_commands (AUTO_LINK $room_id, string $command)
  • AUTO_LINK $room_id: The ID of the chat room
  • string $command: The command used. This is just the chat message, so you can encode and recognise your own parameter scheme if you like.

Documentation generated on Sun, 02 Jan 2011 23:12:57 +0000 by phpDocumentor 1.4.3