hi is there a way to get only privatemsgs?
If you mean to have the bot only respond to private messages, yes you just use SMARTIRC_TYPE_QUERY when using the registerActionhandler() function.
example: $irc->registerActionhandler(SMARTIRC_TYPE_QUERY, '^.join', $bot, 'join');
Hope that helps
i want to log only querys ^^
SMARTIRC_DEBUG_QUERYS or so ;)
No such thing as SMARTIRC_DEBUG_QUERYS. Just have the bot respond to all queries with:
$irc->registerActionhandler(SMARTIRC_TYPE_QUERY, '.*', $bot, 'log');
and make a function of your own to write them to a file.
Hope that helps..
Log in to post a comment.
hi
is there a way to get only privatemsgs?
If you mean to have the bot only respond to private messages, yes you just use SMARTIRC_TYPE_QUERY when using the registerActionhandler() function.
example:
$irc->registerActionhandler(SMARTIRC_TYPE_QUERY, '^.join', $bot, 'join');
Hope that helps
i want to log only querys ^^
SMARTIRC_DEBUG_QUERYS or so ;)
No such thing as SMARTIRC_DEBUG_QUERYS. Just have the bot respond to all queries with:
$irc->registerActionhandler(SMARTIRC_TYPE_QUERY, '.*', $bot, 'log');
and make a function of your own to write them to a file.
Hope that helps..