Skip to content

Client XMPP

Keith Sterling edited this page Feb 20, 2019 · 5 revisions

XMPP allows you to run a chat bot via google chat, the config below demonstrates what settings are required to make this happen

Running the Client

Use a derivative of the following script

#! /bin/sh
clear
export PYTHONPATH=../../src:../../libs/MetOffer-1.3.2:.
python3 ../../src/programy/clients/xmpp.py --config ./config.yaml --cformat yaml --logging ./logging.yaml 

Configuration Settings

You should not need to change anything if you are using Google, if you are using another XMPP Server then you'll need to change the server and port setting, but should not need to modify the xep_XXXX options. These are really for advanced users only.

Configuration settings are decribed in the Wiki page XMPP Configuration

License Key Settings

You will need a valid Google account, this needs to be set up with userid and password only. Do not use an account that has multi-factor authentication ( MFA ) enabled, otherwise it will not work

XMPP_USERNAME = [email protected]
XMPP_PASSWORD = XXXXXXXXXXX
Clone this wiki locally