12345678910111213141516171819202122232425262728 |
- import requests
- import xmpp
- from xmpp import cli
- import config
- from BotClass import JabberBot
- import json
- #раскомментировать, когда перейдем на разные пароли
- import hashlib
- from datetime import datetime
- import time
- import threading
- #test
- import jsonAndRequest as jsreq
- global tasklist
- botname="open_template_bot"
- operating_status=211
- JID=botname+"@"+config.JSERVER
- PORT=config.PORT
- PASSWORD=hashlib.md5((botname+config.PASSWORD).encode('utf-8')).hexdigest()
- proceed_to=["open_servicerequest_booked@ej.sharix-app.org"]
- def send_msg(msg):
- bot = JabberBot(JID, PASSWORD, PORT)
- bot.send_notification(proceed_to[0],msg)
|