stucked_s 3920524cd1 new working handlers 5 mēneši atpakaļ
..
.gitignore 4e6d1b4f49 Added gitignore 1 gadu atpakaļ
BotClass.py 3920524cd1 new working handlers 5 mēneši atpakaļ
README.md 1f8bad2de1 add handlers 1 gadu atpakaļ
applications.json 1f8bad2de1 add handlers 1 gadu atpakaļ
gen-passwords.py 1f8bad2de1 add handlers 1 gadu atpakaļ
gen_users 1f8bad2de1 add handlers 1 gadu atpakaļ
gen_web_users.py 1f8bad2de1 add handlers 1 gadu atpakaļ
jsonAndRequest.py 3920524cd1 new working handlers 5 mēneši atpakaļ
open_accessrequest_accepted.py 3452ed50c5 add st_request 1 gadu atpakaļ
open_accessrequest_pending.py 3452ed50c5 add st_request 1 gadu atpakaļ
open_negrequest_accepted.py 3452ed50c5 add st_request 1 gadu atpakaļ
open_negrequest_pending.py 1f8bad2de1 add handlers 1 gadu atpakaļ
open_servicerequest_accepted.py 3920524cd1 new working handlers 5 mēneši atpakaļ
open_servicerequest_assigned.py 3920524cd1 new working handlers 5 mēneši atpakaļ
open_servicerequest_booked.py 3920524cd1 new working handlers 5 mēneši atpakaļ
open_servicerequest_booked_v2.py a3bbf93bc5 refaktoring_of_bot_script 10 mēneši atpakaļ
open_servicerequest_closed.py 3920524cd1 new working handlers 5 mēneši atpakaļ
open_servicerequest_declined.py 3920524cd1 new working handlers 5 mēneši atpakaļ
open_servicerequest_done.py 3920524cd1 new working handlers 5 mēneši atpakaļ
open_servicerequest_forcemajeure.py 3920524cd1 new working handlers 5 mēneši atpakaļ
open_servicerequest_pending.py 3920524cd1 new working handlers 5 mēneši atpakaļ
open_servicerequest_preforcemajeure.py 04874327df add service requests 1 gadu atpakaļ
open_servicerequest_prestart.py 04874327df add service requests 1 gadu atpakaļ
open_servicerequest_process.py 3920524cd1 new working handlers 5 mēneši atpakaļ
open_strequest_assigned.py 3452ed50c5 add st_request 1 gadu atpakaļ
open_strequest_done.py 3452ed50c5 add st_request 1 gadu atpakaļ
open_strequest_dublicate.py 3452ed50c5 add st_request 1 gadu atpakaļ
open_strequest_inprocess.py 3452ed50c5 add st_request 1 gadu atpakaļ
open_strequest_new.py 3452ed50c5 add st_request 1 gadu atpakaļ
open_strequest_reopened.py 3452ed50c5 add st_request 1 gadu atpakaļ
open_strequest_wontfix.py 3452ed50c5 add st_request 1 gadu atpakaļ
open_template_bot.py 709153d2f9 changes with new links 11 mēneši atpakaļ
order_functions.py 3920524cd1 new working handlers 5 mēneši atpakaļ
requirements.txt 1f8bad2de1 add handlers 1 gadu atpakaļ
sending_message.py 498adf2c28 modified: handlers/sending_message.py 5 mēneši atpakaļ
starter.sh 3920524cd1 new working handlers 5 mēneši atpakaļ
status_handlers.py 1f8bad2de1 add handlers 1 gadu atpakaļ

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/