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

This commit is contained in:
Nexus 2024-06-06 00:59:00 +01:00
parent 1c1821b17a
commit e4d3d0fe56
Signed by: nex
GPG key ID: 0FA334385D0B689F
2 changed files with 4 additions and 4 deletions

View file

@ -1051,11 +1051,11 @@ class Ollama(commands.Cog):
system
)
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")
password = CONFIG["truth"].get("password", "2")
response = await client.get(
r + "/api/truths/all",
r + "/truths",
timeout=60,
auth=(username, password),
)

View file

@ -336,11 +336,11 @@ class QuoteQuota(commands.Cog):
)
await ctx.respond(embed=embed)
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")
password = CONFIG["truth"].get("password", "2")
response = await client.get(
r + "/api/truths/all",
r + "/truths",
timeout=60,
auth=(username, password),
)