1
0
blezz-tech f40f4f6a8a rename requests in files 3 долоо хоног өмнө
..
classes 4959e229f2 Вынос классов в отдельный файлы 1 сар өмнө
.gitignore c0dd28f53e new jabber handler 10 сар өмнө
BotClass.py dca84a397e Merge branch 'new_version_assit' into new_version_unstable 1 сар өмнө
README.md f40f4f6a8a rename requests in files 1 долоо хоног өмнө
access_request_accepted.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
access_request_pending.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
applications.json c0dd28f53e new jabber handler 10 сар өмнө
basic_bot.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
config.py a79b64f709 pipe for saving handlers 3 сар өмнө
gen-passwords.py 79ce9c5717 new handler for tickets 8 сар өмнө
gen_users 79ce9c5717 new handler for tickets 8 сар өмнө
gen_web_users.py 79ce9c5717 new handler for tickets 8 сар өмнө
jsonAndRequest.py 4959e229f2 Вынос классов в отдельный файлы 1 сар өмнө
neg_request_accepted.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
neg_request_pending.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
old_st_request_assigned.py 7400da1799 rename old handlers 1 долоо хоног өмнө
old_st_request_done.py 7400da1799 rename old handlers 1 долоо хоног өмнө
old_st_request_new.py 7400da1799 rename old handlers 1 долоо хоног өмнө
old_st_request_wontfix.py 7400da1799 rename old handlers 1 долоо хоног өмнө
order_functions.py 93219f2554 Editing handlers for work(new choose provider ) 9 сар өмнө
requirements.txt c0dd28f53e new jabber handler 10 сар өмнө
service_request_accepted.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
service_request_assigned.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
service_request_booked.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
service_request_booked_v2.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
service_request_closed.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
service_request_declined.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
service_request_done.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
service_request_forcemajeure.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
service_request_pending.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
service_request_preforcemajeure.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
service_request_prestart.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
service_request_process.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
st_request_assigned.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
st_request_done.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
st_request_dublicate.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
st_request_in_process.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
st_request_new.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
st_request_reopened.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
st_request_wontfix.py f40f4f6a8a rename requests in files 1 долоо хоног өмнө
starter.sh f40f4f6a8a rename requests in files 1 долоо хоног өмнө
status_changer.py 79ce9c5717 new handler for tickets 8 сар өмнө
status_handlers.py 79ce9c5717 new handler for tickets 8 сар өмнө
template_bot.py f40f4f6a8a rename requests in files 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 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/