Update jimmy to use the new API endpoints
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
1c1821b17a
commit
e4d3d0fe56
2 changed files with 4 additions and 4 deletions
|
@ -1051,11 +1051,11 @@ class Ollama(commands.Cog):
|
||||||
system
|
system
|
||||||
)
|
)
|
||||||
async with httpx.AsyncClient() as client:
|
async with httpx.AsyncClient() as client:
|
||||||
r = CONFIG["truth"].get("api", "https://bots.nexy7574.co.uk/jimmy/v2")
|
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")
|
||||||
response = await client.get(
|
response = await client.get(
|
||||||
r + "/api/truths/all",
|
r + "/truths",
|
||||||
timeout=60,
|
timeout=60,
|
||||||
auth=(username, password),
|
auth=(username, password),
|
||||||
)
|
)
|
||||||
|
|
|
@ -336,11 +336,11 @@ class QuoteQuota(commands.Cog):
|
||||||
)
|
)
|
||||||
await ctx.respond(embed=embed)
|
await ctx.respond(embed=embed)
|
||||||
async with httpx.AsyncClient() as client:
|
async with httpx.AsyncClient() as client:
|
||||||
r = CONFIG["truth"].get("api", "https://bots.nexy7574.co.uk/jimmy/v2")
|
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")
|
||||||
response = await client.get(
|
response = await client.get(
|
||||||
r + "/api/truths/all",
|
r + "/truths",
|
||||||
timeout=60,
|
timeout=60,
|
||||||
auth=(username, password),
|
auth=(username, password),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue