User Tools

Site Tools


code:vxmppb:install:npm

How To Install vXMPPb using NPM

..


I say this script has SMS on the NPM page. I achieve this using a great service called Cheogram. Check them out! 😁 Message me on xmpp for a free month!

Create App Directory

mkdir ~/vxmppb/ && cd ~/vxmppb/

Install!

npm i --prefix ./ vxmppb

How To Configure vXMPPb

Backup Template

cp ./node_modules/vxmppb/config.ini.dist ./config.ini

Edit Details

nano config.ini

General Bot Configuration

You're done!!!

Now, RUN!

nodejs ./node_modules/vxmppb/index.js

To keep this script running in the background you can use screen or tmux! If you don't have them installed, just run it in the background using this command;

nohup nodejs ./node_modules/vxmppb/index.js > /dev/null 2>&1 & echo $! > /tmp/vxmppb.pid

To kill the bot, simply type

kill $(cat /tmp/vxmppb.pid)
code/vxmppb/install/npm.txt · Last modified: 2022/04/30 21:09 by stephen