how do i do a nickserv or chanserv command? when i do eg. a nickserv identify, the bot actually outputs "/nickserv identiry user pass"...
tia
This is the function I wrote:
function register_nick(&$irc) { $irc->message(SMARTIRC_TYPE_QUERY, 'nickserv', 'register somepass'); }
You would need to change the query message to match the syntax required by your specific services.
I use the following actionhandler...
$irc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '^!register nick', $bot, 'register_nick');
You can make your bot automatically identify with NickServ when connecting. 5th parameter of login().
Example: $irc->login('NICKNAME', 'Net_SmartIRC Client '.SMARTIRC_VERSION, 8, 'USERNAME', 'PASSWORD');
wildbill86, i tried that before posting here, but it simply didn't work, i'll try again and if it still doesn't work naked-geeks's method thanks both!
hmmmm strange, now the login() function works... i guess there is a delay after registering before you can identify oh well, thanks again both :)
Log in to post a comment.
how do i do a nickserv or chanserv command? when i do eg. a nickserv identify, the bot actually outputs "/nickserv identiry user pass"...
tia
This is the function I wrote:
function register_nick(&$irc)
{
$irc->message(SMARTIRC_TYPE_QUERY, 'nickserv', 'register somepass');
}
You would need to change the query message to match the syntax required by your specific services.
I use the following actionhandler...
$irc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '^!register nick', $bot, 'register_nick');
You can make your bot automatically identify with NickServ when connecting. 5th parameter of login().
Example: $irc->login('NICKNAME', 'Net_SmartIRC Client '.SMARTIRC_VERSION, 8, 'USERNAME', 'PASSWORD');
wildbill86, i tried that before posting here, but it simply didn't work, i'll try again and if it still doesn't work naked-geeks's method
thanks both!
hmmmm strange, now the login() function works... i guess there is a delay after registering before you can identify
oh well, thanks again both :)