Delivering the best Add-Ons in more than 37 languages.

中文(简体), English, हिन्दी/हिंदी, Español/Castellano, العربية, Русский язык, Français, 中文 (台灣), বাংলা, Bahasa Indonesia, اردو, Português, Deutsch, Bahasa Melayu (بهاس ملايو‎), 日本語 (にほんご), فارسی, Italiano, తెలుగు, Türkçe, ગુજરાતી, Język polski/polszczyzna, Tiếng Việt, ಕನ್ನಡ, Українська мова, ไทย
JavaScript / Social Networks

Yahoo! Messenger node.JS BOT

— Add-On to

Subscribe to our feed to stay up to date!

New! Follow us as you want it!

Yahoo! Messenger node.JS BOT - CodeCanyon Item for Sale


Ad: Bluehost hosting

Yahoo! Messenger PHP BOT

  • Created: 05/31/2012
  • latest Update: 05/31/2012
  • By: nr913

  • What can you use it for?

    Having no particulary best use, the BOT can fullfill a great variety of tasks, such as:

    • Live chat support;
    • General information query BOT;
    • Newsletter BOT;
    • Remote control via Yahoo! Messenger.

    It can easily adopt a practical use, according to your need.

    What’s so special with this BOT?

    • Super easy to implement;
    • Supports file transfers through Yahoo! relay servers. That means, you don’t have to worry about port forwarding;
    • Event handling is done by node’s native events;
    • Take advantage of the great performances and features of node.js.

    What’s in the package?

    In the package is the main file, YBot.js, and three sample files:

    • sample.js, Can be used as a template for projects;
    • sample_remote.js, Makes shell commands and transfers files via Yahoo! Messenger;
    • sample_support.js, A simple principle of managing clients for a live chat session support.

    How can you use it?

    Good question. First, you have to include the main file, YBot.js.

 var bot = require('./YBot.js');

Then, make an instance of YBot class, passing to the constructor the ID and Password of the account the BOT will log into.

 Bot = new bot.YBot('yahoo_id','password');

To run the BOT process, simply call Start method


But that will just start the bot. Because of node.js the BOT will run asyncroniously. Of course, if you want to handle incoming messages, files and so on, you have to register a callback, like so:

 Bot.on('message', OnIncomingMessage); function OnIncomingMessage(from, message) { // handle the message Bot.SendMessage(from, "I don't know what to say..."); }

Documentation about events, methods and their parameters can be found in the begining of YBot.js.

So, a basic BOT file should look like this:

 // include the bot class var bot = require('./YBot.js'); // instantiate the bot Bot = new bot.YBot('yahoo_id', 'password'); // register our callbacks Bot.on('message', OnIncomingMessage); // declare the callbacks function OnIncomingMessage($from, $message) { Bot.SendMessage($from, "I don't know what to say.."); } // start the bot process Bot.Start(); 


[05/31/2012] Version 1.0 released

Other components in this categoryAll components of this author
CommentsFrequently asked questions and answers


5 June 12

Last Update:

Software Version:
Other, jQuery

Files Included:
JavaScript JS


eCommerce, All Items, bot, chat, control, live, messenger, remote, support, yahoo