mirror of
https://github.com/NovaOSS/nova-cord.git
synced 2024-11-26 00:43:58 +01:00
Compare commits
No commits in common. "33df5c34546f0d3f5617ab36b495da1d961d1fbd" and "9dd92a80a31ffd61e851b1cdca2644d6370740e2" have entirely different histories.
33df5c3454
...
9dd92a80a3
|
@ -12,7 +12,7 @@ load_dotenv()
|
||||||
|
|
||||||
async def request_user_by_discord_id(discord_id):
|
async def request_user_by_discord_id(discord_id):
|
||||||
return requests.get(
|
return requests.get(
|
||||||
url=f'http://localhost:2333/users?discord_id={discord_id}',
|
url=f'https://api.nova-oss.com/users?discord_id={discord_id}',
|
||||||
timeout=3,
|
timeout=3,
|
||||||
headers={
|
headers={
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
@ -107,7 +107,7 @@ Please report this issue to the staff!""", ephemeral=True)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
requests.put(
|
requests.put(
|
||||||
url=f'http://localhost:2333/users?discord_id={account["auth"]["discord"]}',
|
url=f'https://api.nova-oss.com/users?discord_id={account["auth"]["discord"]}',
|
||||||
timeout=3,
|
timeout=3,
|
||||||
headers={
|
headers={
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|
|
@ -33,7 +33,7 @@ Please report this issue to the staff!""", ephemeral=True)
|
||||||
|
|
||||||
# CREATE USER
|
# CREATE USER
|
||||||
get_response = requests.post(
|
get_response = requests.post(
|
||||||
url='http://localhost:2333/users',
|
url='https://api.nova-oss.com/users',
|
||||||
timeout=3,
|
timeout=3,
|
||||||
headers={
|
headers={
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|
|
@ -13,7 +13,7 @@ load_dotenv()
|
||||||
async def verify(interaction) -> bool:
|
async def verify(interaction) -> bool:
|
||||||
try:
|
try:
|
||||||
resp = requests.post(
|
resp = requests.post(
|
||||||
url='http://localhost:2323/api/tos-verification',
|
url='https://nova-oss.com/api/tos-verification',
|
||||||
timeout=5,
|
timeout=5,
|
||||||
headers={
|
headers={
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
@ -21,12 +21,9 @@ async def verify(interaction) -> bool:
|
||||||
}
|
}
|
||||||
).json()
|
).json()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
await embedder.error(interaction, f"""Sorry,
|
await embedder.error(interaction, """Sorry,
|
||||||
the API server for the verification system is not functioning,
|
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
|
raise exc
|
||||||
|
|
||||||
success = False
|
success = False
|
||||||
|
|
Loading…
Reference in a new issue