GithubHelp home page GithubHelp logo

node-pidgin's Introduction

node-pidgin

Pidgin node.js client using pidgin dbus api

API

See pidgin DBus howto for a reference

Examples

Create status:

var pidgin = require('pidgin').createClient();
pidgin.PurpleSavedstatusNew('Вася Ложкин', 2, function (err, status) {
  console.log('Status created');
  console.log(status);
});

Handle message:

var pidgin = require('pidgin').createClient();
pidgin.on('ReceivedImMsg', function(account, sender, message, conversation, flags) {
   console.log('Message!', message)
});

node-pidgin's People

Contributors

sidorares avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

digideskio majorz

node-pidgin's Issues

Account connection issue

I am trying to connect to an account and I am following libpurple tutorial but I am constantly getting this message in debug page.

account: Account not enabled, not connecting

Here is the code

  p.PurpleAccountNew(
    "<email>",
    "prpl-eionrobb-discord",
    (err, acc) => {
      p.PurpleAccountSetPassword(acc, "<password>");
      p.PurpleAccountsAdd(acc);
      p.PurpleAccountSetEnabled(acc, "user", true);
      p.PurpleAccountConnect(acc);
    }
  );

unknown bus address error when starting the program.

Hi this is what I get when I type in node REPL,

var pidgin = require('pidgin').createClient();
Error: unknown bus address
    at createStream (/root/node_modules/pidgin/node_modules/dbus-native/index.js:24:26)
    at Module.module.exports (/root/node_modules/pidgin/node_modules/dbus-native/index.js:54:32)
    at Function.module.exports.createClient (/root/node_modules/pidgin/node_modules/dbus-native/index.js:112:23)
    at Function.module.exports.sessionBus (/root/node_modules/pidgin/node_modules/dbus-native/index.js:121:27)
    at Object.module.exports.createClient (/root/node_modules/pidgin/index.js:23:34)
    at repl:1:32
    at REPLServer.self.eval (repl.js:110:21)
    at repl.js:249:20
    at REPLServer.self.eval (repl.js:122:7)
    at Interface.<anonymous> (repl.js:239:12)

Does this mean that I have something else to install as a dependency or something?

ReceivedImMsg only returns numbers

Using the example:

var pidgin = require('pidgin').createClient();
pidgin.on('ReceivedImMsg', function(msg) {
console.log('Message!', msg)
})

I only get numbers such as "1962" returned rather then the actual message

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.