I've created a sub-module that allows users to run special bot commands (provided by other modules).
A module (for example "bot_log") can implement hook_bot_commands to add new commands.
Example (see second patch):
<?php
function bot_log_bot_commands() {
return array(
'log start' => array(
'description' => t('Starts logging messages in the current channel.'),
'callback' => 'bot_log_add_channel',
),
'log stop' => array(
'description' => t('Stops logging messages in the current channel.'),
'callback' => 'bot_log_remove_channel',
),
);
}
?>
Comments
Comment #1
stborchertMinor bugfixing.