Compare commits

...

2 commits

Author SHA1 Message Date
nsde 33df5c3454 fix v2 2023-08-29 08:58:30 +02:00
nsde 3859d984b5 Fix 2023-08-29 08:48:45 +02:00
3 changed files with 9 additions and 6 deletions

View file

@ -12,7 +12,7 @@ load_dotenv()
async def request_user_by_discord_id(discord_id):
return requests.get(
url=f'https://api.nova-oss.com/users?discord_id={discord_id}',
url=f'http://localhost:2333/users?discord_id={discord_id}',
timeout=3,
headers={
'Content-Type': 'application/json',
@ -107,7 +107,7 @@ Please report this issue to the staff!""", ephemeral=True)
try:
requests.put(
url=f'https://api.nova-oss.com/users?discord_id={account["auth"]["discord"]}',
url=f'http://localhost:2333/users?discord_id={account["auth"]["discord"]}',
timeout=3,
headers={
'Content-Type': 'application/json',

View file

@ -33,7 +33,7 @@ Please report this issue to the staff!""", ephemeral=True)
# CREATE USER
get_response = requests.post(
url='https://api.nova-oss.com/users',
url='http://localhost:2333/users',
timeout=3,
headers={
'Content-Type': 'application/json',

View file

@ -13,7 +13,7 @@ load_dotenv()
async def verify(interaction) -> bool:
try:
resp = requests.post(
url='https://nova-oss.com/api/tos-verification',
url='http://localhost:2323/api/tos-verification',
timeout=5,
headers={
'Content-Type': 'application/json',
@ -21,9 +21,12 @@ async def verify(interaction) -> bool:
}
).json()
except Exception as exc:
await embedder.error(interaction, """Sorry,
await embedder.error(interaction, f"""Sorry,
the API server for the verification system is not functioning,
which means you can\'t create a new key right now. Please report this issue to the staff!""")
which means you can\'t create a new key right now. Please report this issue to the staff:
```{type(exc)} - {exc}```
""")
raise exc
success = False