mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
removed auto updating feature
This commit is contained in:
parent
4a1e7a559e
commit
c8c29a4edc
1 changed files with 0 additions and 13 deletions
|
|
@ -160,22 +160,9 @@ class PrivateChatHandler:
|
|||
try:
|
||||
self.server_online = True
|
||||
version = float(response.replace('v', ''))
|
||||
if version > __version__:
|
||||
self._update_version()
|
||||
except:
|
||||
self.error = 'Server offline'
|
||||
|
||||
def _update_version(self):
|
||||
new_file = self._send_request(url=f'{url}/updatepartywindow?get=file')
|
||||
hash = self._send_request(url=f'{url}/updatepartywindow?get=md5')
|
||||
if hash and new_file:
|
||||
file_hash = md5(new_file.encode()).hexdigest()
|
||||
if hash == file_hash:
|
||||
with open(__file__, 'w') as f:
|
||||
f.write(new_file)
|
||||
_ba.pushcall(ba.Call(ba.screenmessage,
|
||||
'Ultra party window updated\nNeeds restart.'), True)
|
||||
|
||||
def _signup(self, registration_key):
|
||||
data = dict(pb_id=self.myid, registration_key=registration_key)
|
||||
response = self._send_request(url=f'{url}/signup', data=data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue