Update Cromicle.py

This commit is contained in:
Hexye 2023-10-04 22:51:41 +02:00 committed by GitHub
parent eb13f3b01d
commit 3b418e8cc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ class Cromicle(AsyncGeneratorProvider):
proxy: str = None,
**kwargs
) -> AsyncGenerator:
message = messages[-1]["content"]
async with ClientSession(
headers=_create_header()
) as session:
@ -46,5 +46,5 @@ def _create_payload(message: str):
return {
'message' : message,
'token' : 'abc',
'hash' : sha256(token.encode() + message.encode()).hexdigest()
'hash' : sha256('abc'.encode() + message.encode()).hexdigest()
}