Skip to content

pocketfood/xmpp-bot-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

xmpp-bot-boilerplate

Execute basic premade shell commands through xmpp.

Only runs on linux.


npm install xmpp @xmpp/client @xmpp/debug

then

node xmpp-bot.js


Groupchat stanza

Change all the Message stanzas to type: groupchat and change the name to whatever group you are in.

xmpp.send(xml('presence', {from: '', to: ''}, xml('x', {xmlns: 'http://jabber.org/protocol/muc'}))

Make sure to specify the nick name at the end of the conference or you will get a malformed error

:)

Releases

No releases published

Packages

No packages published