Skip to content

Commit

Permalink
Update module versions
Browse files Browse the repository at this point in the history
  • Loading branch information
F33RNI committed Jul 23, 2023
1 parent 67c18cc commit aa741ad
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
7 changes: 5 additions & 2 deletions BardModule.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,12 @@ def initialize(self, proxy=None) -> None:

# Initialize chatbot
if proxy:
self._chatbot = Bard.Chatbot(self.config["bard"]["token"], proxy=proxy)
self._chatbot = Bard.Chatbot(self.config["bard"]["secure_1psid"],
self.config["bard"]["secure_1psidts"],
proxy=proxy)
else:
self._chatbot = Bard.Chatbot(self.config["bard"]["token"])
self._chatbot = Bard.Chatbot(self.config["bard"]["secure_1psid"],
self.config["bard"]["secure_1psidts"])
# Done?
if self._chatbot is not None:
logging.info("Bard module initialized")
Expand Down
11 changes: 7 additions & 4 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,16 @@
"__comment06__": "BARD SETTINGS",
"bard": {
"__comment01__": "Go to Application -> Cookies -> __Secure-1PSID. Copy the value of that cookie",
"token": "",
"secure_1psid": "",

"__comment02__": "IF NEEDED, SPECIFY PROXY IN THE http://IP:PORT FORMAT (SPECIFY HTTP EVEN IF IT IS HTTPS PROXY)",
"__comment03__": "OR SET TO auto AND ENABLE proxy_automation TO AUTOMATICALLY SEARCH WORKING PROXIES",
"__comment02__": "Go to Application -> Cookies -> __Secure-1PSIDTS. Copy the value of that cookie",
"secure_1psidts": "",

"__comment03__": "IF NEEDED, SPECIFY PROXY IN THE http://IP:PORT FORMAT (SPECIFY HTTP EVEN IF IT IS HTTPS PROXY)",
"__comment04__": "OR SET TO auto AND ENABLE proxy_automation TO AUTOMATICALLY SEARCH WORKING PROXIES",
"proxy": "",

"__comment04__": "RESPONSE TIMEOUT (IN SECONDS)",
"__comment05__": "RESPONSE TIMEOUT (IN SECONDS)",
"timeout_seconds": 120
},

Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from JSONReaderWriter import load_json

# GPT-Telegramus version
__version__ = "3.0.3"
__version__ = "3.1.0"

# Logging level
LOGGING_LEVEL = logging.INFO
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
python-telegram-bot>=20.3
revChatGPT==6.7.3
revChatGPT==6.8.6
EdgeGPT==0.10.16
openai>=0.26.4
tiktoken>=0.2.0
OpenAIAuth>=0.3.2
asyncio==3.4.3
GoogleBard==1.4.0
GoogleBard==2.1.0
requests>=2.28.1
telegram>=0.0.1
psutil>=5.9.4
Expand Down

0 comments on commit aa741ad

Please sign in to comment.