Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pocketfood/xmpp-bot-boilerplate

Execute basic shell commands through xmpp
https://github.com/pocketfood/xmpp-bot-boilerplate

boilerplate client javascript nodejs shell xmpp xmppjs

Last synced: 5 days ago
JSON representation

Execute basic shell commands through xmpp

Awesome Lists containing this project

README

        

# 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

:)