Remove the need to trust env
All checks were successful
Build and Publish college-bot-v2 / build_and_publish (push) Successful in 14s
All checks were successful
Build and Publish college-bot-v2 / build_and_publish (push) Successful in 14s
This commit is contained in:
parent
89a2502b8e
commit
72f349cdf2
2 changed files with 3 additions and 3 deletions
|
@ -1108,7 +1108,7 @@ class Ollama(commands.Cog):
|
||||||
r = CONFIG["truth"].get("api", "https://bots.nexy7574.co.uk/jimmy/v2/api")
|
r = CONFIG["truth"].get("api", "https://bots.nexy7574.co.uk/jimmy/v2/api")
|
||||||
username = CONFIG["truth"].get("username", "1")
|
username = CONFIG["truth"].get("username", "1")
|
||||||
password = CONFIG["truth"].get("password", "2")
|
password = CONFIG["truth"].get("password", "2")
|
||||||
async with httpx.AsyncClient(base_url=r, auth=(username, password)) as http_client:
|
async with httpx.AsyncClient(base_url=r, auth=(username, password), trust_env=False) as http_client:
|
||||||
response = await http_client.get(
|
response = await http_client.get(
|
||||||
"/truths",
|
"/truths",
|
||||||
timeout=60,
|
timeout=60,
|
||||||
|
@ -1370,7 +1370,7 @@ class Ollama(commands.Cog):
|
||||||
"""
|
"""
|
||||||
Fetches a specific truth post by ID.
|
Fetches a specific truth post by ID.
|
||||||
"""
|
"""
|
||||||
async with httpx.AsyncClient() as client:
|
async with httpx.AsyncClient(trust_env=False) as client:
|
||||||
r = CONFIG["truth"].get("api", "https://bots.nexy7574.co.uk/jimmy/v2/api")
|
r = CONFIG["truth"].get("api", "https://bots.nexy7574.co.uk/jimmy/v2/api")
|
||||||
username = CONFIG["truth"].get("username", "1")
|
username = CONFIG["truth"].get("username", "1")
|
||||||
password = CONFIG["truth"].get("password", "2")
|
password = CONFIG["truth"].get("password", "2")
|
||||||
|
|
|
@ -335,7 +335,7 @@ class QuoteQuota(commands.Cog):
|
||||||
timestamp=now,
|
timestamp=now,
|
||||||
)
|
)
|
||||||
await ctx.respond(embed=embed)
|
await ctx.respond(embed=embed)
|
||||||
async with httpx.AsyncClient() as client:
|
async with httpx.AsyncClient(trust_env=False) as client:
|
||||||
r = CONFIG["truth"].get("api", "https://bots.nexy7574.co.uk/jimmy/v2/api")
|
r = CONFIG["truth"].get("api", "https://bots.nexy7574.co.uk/jimmy/v2/api")
|
||||||
username = CONFIG["truth"].get("username", "1")
|
username = CONFIG["truth"].get("username", "1")
|
||||||
password = CONFIG["truth"].get("password", "2")
|
password = CONFIG["truth"].get("password", "2")
|
||||||
|
|
Loading…
Reference in a new issue