Skip to content

Commit

Permalink
update pocketfi server url
Browse files Browse the repository at this point in the history
  • Loading branch information
FaxWeb7 committed Jul 31, 2024
1 parent ac2461b commit 8374ed8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 7_pocketfi/bot/core/claimer.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def get_tg_web_data(self, proxy: str | None) -> str:

async def get_mining_data(self, http_client: aiohttp.ClientSession) -> dict[str]:
try:
response = await http_client.get('https://bot.pocketfi.org/mining/getUserMining')
response = await http_client.get('https://gm.pocketfi.org/mining/getUserMining')
response.raise_for_status()

response_json = await response.json()
Expand All @@ -83,7 +83,7 @@ async def get_mining_data(self, http_client: aiohttp.ClientSession) -> dict[str]

async def send_claim(self, http_client: aiohttp.ClientSession) -> bool:
try:
response = await http_client.post('https://bot.pocketfi.org/mining/claimMining', json={})
response = await http_client.post('https://gm.pocketfi.org/mining/claimMining', json={})
response.raise_for_status()

return True
Expand All @@ -103,7 +103,7 @@ async def check_proxy(self, http_client: aiohttp.ClientSession, proxy: Proxy) ->

async def check_daily(self, http_client: aiohttp.ClientSession) -> bool:
try:
response = await http_client.get('https://bot.pocketfi.org/mining/taskExecuting')
response = await http_client.get('https://gm.pocketfi.org/mining/taskExecuting')
response.raise_for_status()
response_json = await response.json()
claim = response_json['tasks']['daily'][0]['doneAmount']
Expand All @@ -117,7 +117,7 @@ async def check_daily(self, http_client: aiohttp.ClientSession) -> bool:

async def claim_daily(self, http_client: aiohttp.ClientSession) -> int:
try:
response = await http_client.post(url='https://bot.pocketfi.org/boost/activateDailyBoost', json={})
response = await http_client.post(url='https://gm.pocketfi.org/boost/activateDailyBoost', json={})
response.raise_for_status()
response_json = await response.json()
return response_json['updatedForDay']
Expand Down

0 comments on commit 8374ed8

Please sign in to comment.