Jabber bot template
Шаблон jabber-бота
Староверов Данила Андреевич 62b96144d7 add request booked | il y a 1 an | |
---|---|---|
.gitignore | il y a 1 an | |
BotClass.py | il y a 1 an | |
README.md | il y a 1 an | |
applications.json | il y a 1 an | |
config_template.py | il y a 1 an | |
gen-passwords.py | il y a 1 an | |
gen_users | il y a 1 an | |
gen_web_users.py | il y a 1 an | |
jsonAndRequest.py | il y a 1 an | |
open_negrequest_pending.py | il y a 1 an | |
open_servicerequest_booked.py | il y a 1 an | |
open_template_bot.py | il y a 1 an | |
requirements.txt | il y a 1 an | |
status_handlers.py | il y a 1 an |
Create env
python -m venv env #for Windows
python3 -m venv env #for Linux
Activate env
.\env\Scripts\activate #Windows
source env/bin/activate #Linux
Instatt requirements
pip3 install -r requirements.txt
Run Bot
python3 open_template_bot.py
https://democonv.sharix-app.org/ - testing client
user: test@ej.sharix-app.org user: test1@ej.sharix-app.org
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
ejabberdctl create_room room_name muc_service xmpp_domain
#ejabberdctl destroy_room room_name muc_service
ejabberdctl rooms_unused_list xmpp_domain number_of_days