Jabber bot template

Шаблон jabber-бота

Dev Server 6d4cf733b0 new changes for assist template преди 1 година
.gitignore dd86fdc425 gitignore modifyed to skip ~ files преди 1 година
BotClass.py 6d4cf733b0 new changes for assist template преди 1 година
README.md 2d25b24328 readme content formatting fixed преди 1 година
applications.json 11ff346810 комментарии к коду преди 1 година
assist_servicerequest_booked.py 6d4cf733b0 new changes for assist template преди 1 година
config_template.py 6d4cf733b0 new changes for assist template преди 1 година
gen-passwords.py 426a646d39 config template improvements преди 1 година
gen_users 3a499a9d38 readme file created преди 1 година
gen_web_users.py 5511941ccb gen users script fixed for any bot name преди 1 година
genservice.py 6d4cf733b0 new changes for assist template преди 1 година
jsonAndRequest.py 6d4cf733b0 new changes for assist template преди 1 година
open_negrequest_pending.py 04fc78a5fd open_negrequest_pending added преди 1 година
open_template_bot.py bd96bd087a json parsing fixed and order loop processing преди 1 година
requirements.txt a3816aaffd add json to object and http requests преди 1 година
status_handlers.py d1510c1b33 status handler added преди 1 година

README.md

Open Template Bot

Simple example for processing orders

Install and run

  1. Rename config_template.py to config.py
  2. Create env

    python -m venv env #for Windows
    python3 -m venv env #for Linux
    
  3. Activate env

    .\env\Scripts\activate #Windows
    source env/bin/activate #Linux
    
  4. Instatt requirements

    pip3 install -r requirements.txt
    
  5. Run Bot

    python3 open_template_bot.py
    

Testing

https://democonv.sharix-app.org/ - testing client

Users recommended for testing

user: test@ej.sharix-app.org user: test1@ej.sharix-app.org

Useful commands for Ejabberctl while testing Bot

ejabberdctl register $username ej $password

ejabberdctl change-password User Host newPassword

ejabberdctl check_account user1 localhost

ejabberdctl unregister badlop3 localhost
ejabberdctl registered_users localhost
ejabberdctl help registered_users

Create MUC room

ejabberdctl create_room room_name muc_service xmpp_domain

Destroy MUC room

#ejabberdctl destroy_room room_name muc_service

List unused MUC rooms

ejabberdctl rooms_unused_list xmpp_domain number_of_days

https://docs.ejabberd.im/admin/ejabberdctl/muc-admin/