mirror of
https://github.com/NovaOSS/nova-api.git
synced 2024-11-25 16:23:57 +01:00
Fixes
This commit is contained in:
parent
45c6a14dc0
commit
a8a5aa9ef4
|
@ -328,3 +328,8 @@ It is recommended to use the default ports, because this will make it easier to
|
||||||
## Run Production Server
|
## Run Production Server
|
||||||
|
|
||||||
Make sure you have read all the according sections and have set up everything correctly.
|
Make sure you have read all the according sections and have set up everything correctly.
|
||||||
|
|
||||||
|
## Donations
|
||||||
|
When someone donates, manually update the credits and role to "helper" in the database.
|
||||||
|
For enterprise donations with more lax rate-limits, set the role to "enterprise".
|
||||||
|
Make sure to also include the donation in the `donations` database!
|
||||||
|
|
|
@ -42,7 +42,10 @@ async def check_core_auth(request):
|
||||||
async def new_user_webhook(user: dict) -> None:
|
async def new_user_webhook(user: dict) -> None:
|
||||||
"""Runs when a new user is created."""
|
"""Runs when a new user is created."""
|
||||||
|
|
||||||
|
try:
|
||||||
dhook = Webhook(os.environ['DISCORD_WEBHOOK__USER_CREATED'])
|
dhook = Webhook(os.environ['DISCORD_WEBHOOK__USER_CREATED'])
|
||||||
|
except KeyError:
|
||||||
|
return
|
||||||
|
|
||||||
embed = Embed(
|
embed = Embed(
|
||||||
description='New User',
|
description='New User',
|
||||||
|
|
Loading…
Reference in a new issue