Menu

querrys

Help
2003-07-07
2003-07-08
  • Nobody/Anonymous

    hi
    is there a way to get only privatemsgs?

     
    • Nobody/Anonymous

      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

       
    • Nobody/Anonymous

      i want to log only querys ^^

      SMARTIRC_DEBUG_QUERYS or so ;)

       
    • Nobody/Anonymous

      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.