Skip to content

plymouthstate/plymouth-jabberbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Plymouth State University Jabber Bot

Requirements

node (of course)

On a mac, install with brew!

brew install node

npm (of course)

Run:

curl http://npmjs.org/install.sh | sh

On a mac, install with brew!

brew install icu4c
brew link icu4c

npm: simple-xmpp

Install via:

npm install -g simple-xmpp

Configuring

Once you've installed all the requirments, you will need to configure your bot.

cp config-example.js config.js
vi config.js
Setting Wat?
process.env.bot_send_to The jabber account your bot will send messages to. (i.e. your gtalk account)
process.env.bot_listen_port The port your bot will listen on.
process.env.bot_jid The jabber account your bot will log in as in order to send debug messages.
process.env.bot_password The password for your bot's jabber account.
process.env.bot_host The jabber host. Default: talk.google.com
process.env.bot_port The jabber host port. Default: 5222

Note: you'll need to create a jabber account somewhere so this will all work. If you don't have your own domain name, using Gmail is always an option. Once you've created your bot's account, you'll need to log in as your bot via a chat client and invite your primary account as a friend.

Running the Bot

Run this bad boy like so:

node bot.js

About

Plymouth State University's nodejs Jabber Debug Bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published