Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pocketfood/xmpp-bot-boilerplate
- Owner: pocketfood
- Created: 2022-01-25T00:27:08.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-07T00:36:21.000Z (almost 3 years ago)
- Last Synced: 2024-11-12T07:12:13.556Z (2 months ago)
- Topics: boilerplate, client, javascript, nodejs, shell, xmpp, xmppjs
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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
:)