import hashlib #rename this file to config.py #JID="example@msg.sharix-app.org" USERLIST=["guide_backend","drive_backend","assist_backend","sports_backend","open_backend","guide_webadmin_backend","drive_webadmin_backend","assist_webadmin_backend","sports_webadmin_backend","open_webadmin_backend","guide_tickets_backend","drive_tickets_backend","assist_tickets_backend","sports_tickets_backend","open_tickets_backend"] SERVICEADMINLIST=["79999999999","99999999999","79876543210","799999999999"] #BOTLIST=["open_template_bot","open_strequest_assigned","open_strequest_inprocess","open_strequest_new","open_strequest_reopened","open_strequest_wontfix","open_strequest_done","open_strequest_duplicate","open_strequest_closed","open_accessrequest_pending","open_accessrequest_accepted","open_accessrequest_declined","open_negrequest_pending","open_negrequest_accepted","open_negrequest_declined","open_servicerequest_template","open_servicerequest_booked","open_servicerequest_assigned","open_servicerequest_accepted","open_servicerequest_pending","open_servicerequest_declined","open_servicerequest_prestart","open_servicerequest_process","open_servicerequest_forcemajeure","open_servicerequest_forcemajeurecancelled","open_servicerequest_done","open_servicerequest_cancelled","open_servicerequest_closed"] JSERVER="ej.sharix-app.org" PASSWORD="12345" PORT=349 API_URL = "https://testbase.sharix-app.org" #AUTH_API_URL = "https://testbase.sharix-app.org/auth/token/login/" #REG_API_URL = "https://testbase.sharix-app.org/v1/auth/users/" #тут надо указывать еще порт сервера #первое время пусть пароль будет у всех обработчиков одинаковый, далее надо будет генерировать уникальные связки на основе логина и ключа, указанного в файле. # бот в конверс # JID="bottickets@msg.sharix-app.org" # PASSWORD="12345!" for i in range (len(USERLIST)): print(USERLIST[i], hashlib.md5((USERLIST[i]+PASSWORD).encode('utf-8')).hexdigest())