Mzk - Mezzenger Klient (php Class), Class for making PHP bots and webmessengers (MSN Messenger)

This is a discussion on Mzk - Mezzenger Klient (php Class), Class for making PHP bots and webmessengers (MSN Messenger) within the PHP General forums, part of the PHP Programming Forums category; Hello I have made a PHP class for making bots and webmessengers with PHP. Its use is very simple for ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-06-2007
SirDarckCat
 
Posts: n/a
Default Mzk - Mezzenger Klient (php Class), Class for making PHP bots and webmessengers (MSN Messenger)

Hello

I have made a PHP class for making bots and webmessengers with PHP.

Its use is very simple for example:

This function will simply login to the .NET Passport account.. and
show the response of the server.
-------------------------------------------------
CODE-------------------------------------------------
<?php
include("mzk.php");
$t = new MezzengerKlient;
$t->debug=true;
$t->init("mail@mail.com","password");
$t->login();
$t->main();
$t->quit();
?>
------------------------------------------------/
CODE-------------------------------------------------

This function will say "Hello" to all contacts online.
-------------------------------------------------
CODE-------------------------------------------------
<?php
include("mzk.php");
$t = new MezzengerKlient;
$t->debug=true;
$t->onLogin="spam";
$t->init("mail@mail.com","password");
$t->login();
$t->main();
$t->quit();

function spam(){
global $t;
for ($i=0;isset($t->onlinefriends[$i]);$i++){
$cont=@split(' ',$t->onlinefriends[$i]);
$t->MessageToNew($cont[0],"Hello");
}
}
?>
------------------------------------------------/
CODE-------------------------------------------------

This function will change the bot's nick to "I am a bot" when logged
in.
-------------------------------------------------
CODE-------------------------------------------------
<?php
include("mzk.php");
$t = new MezzengerKlient;
$t->debug=true;
$t->onLogin="change_nick";
$t->init("mail@mail.com","password");
$t->login();
$t->main();
$t->quit();

function change_nick(){
global $t;
$t->setNick('I am a bot');
}
?>
------------------------------------------------/
CODE-------------------------------------------------

The project page is: http://code.google.com/p/mzk/
The documentation of the use of the class can be found in the wiki.
The code can be found here: http://mzk.googlecode.com/svn/trunk/

The difference between this class and others is that this is commented
in english (the other one I found was in chinese), uses Events :P and
is fully documented.

Later I will add compatibility for exchanging "emoticons" and file
transfer.. :)

Thats all and I hope its usefull ;)
Greetz!!

PS.
More examples can be found at the download section here (a contact
grabber and a bot): http://code.google.com/p/mzk/downloads/list

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:23 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0