Browse Source

readme file created

Dev Server 1 year ago
parent
commit
3a499a9d38
2 changed files with 54 additions and 25 deletions
  1. 1 25
      gen_users
  2. 53 0
      readme.md

+ 1 - 25
gen_users

@@ -1,18 +1,6 @@
 #!/bin/bash
 
-#for fist run
-#python3 -m venv env
-#source env/bin/activate
-#pip3 install -t requirements
-
-#activate env before:
-#source env/bin/activate
-
-#https://democonv.sharix-app.org/ - testing client
-#users recommended for testing
-#user: test@ej.sharix-app.org
-#user: test1@ej.sharix-app.org
-
+#берем список ботов и паролей к ним и создаем или апдейтим пользователей (если уже созданы) на сервере
 python3 gen-passwords.py | while IFS=' ' read -ra line; do ejabberdctl register ${line[0]} ej.sharix-app.org ${line[1]}; done;
 python3 gen-passwords.py | while IFS=' ' read -ra line; do ejabberdctl change-password ${line[0]} ej.sharix-app.org ${line[1]}; done;
 #ejabberdctl register $username ej $password
@@ -25,15 +13,3 @@ python3 gen-passwords.py | while IFS=' ' read -ra line; do ejabberdctl change-pa
 #ejabberdctl registered_users localhost
 #ejabberdctl help registered_userst
 
-#берем список ботов и паролей к ним и создаем или апдейтим пользователей (если уже созданы) на сервере
-
-#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/

+ 53 - 0
readme.md

@@ -0,0 +1,53 @@
+## Running
+# For the fist run
+
+```
+python3 -m venv env
+source env/bin/activate
+pip3 install -r requirements.txt
+```
+Don't forget to copy template config
+
+# Each time
+activate env before each local run:
+
+```
+source env/bin/activate
+```
+
+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
+
+```
+ejabberdctl register $username ej $password
+
+ejabberdctl change-password User Host newPassword
+
+ejabberdctl check_account user1 localhos
+
+ejabberdctl unregister badlop3 localhost
+ejabberdctl registered_users localhost
+ejabberdctl help registered_userst
+```
+
+# 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/