Jabber bot template
Шаблон jabber-бота
Dev Server 62a5cae5eb readme merged | 1 年之前 | |
---|---|---|
.gitignore | 1 年之前 | |
BotClass.py | 1 年之前 | |
README.md | 1 年之前 | |
applications.json | 1 年之前 | |
config_template.py | 1 年之前 | |
gen-passwords.py | 1 年之前 | |
gen_users | 1 年之前 | |
jsonAndRequest.py | 1 年之前 | |
open_template_bot.py | 1 年之前 | |
requirements.txt | 1 年之前 |
3. ```.\env\Scripts\activate``` or ```source env/bin/activate```
4. ```pip install -r requirements.txt```
5. ```python run.py```
## Running for local server
Use ```python3``` and ```pip3``` instead ```python``` and ```pip3```
## 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 ```