fix: Send discord user id with faucet request
All checks were successful
Build Docker / Build Image (push) Successful in 20s

This commit is contained in:
Nathan Woodburn 2023-11-08 17:58:21 +11:00
parent ddc0deccef
commit b9fe89801e
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -14,7 +14,7 @@ async def send_domain(user, email):
await user.send("Your email is invalid")
return
response = requests.post("https://faucet.woodburn.au/api?email=" + email+"&name="+user.name + "&key=" + os.getenv('FAUCET_KEY'))
response = requests.post("https://faucet.woodburn.au/api?email=" + email+"&name="+user.id + "&key=" + os.getenv('FAUCET_KEY'))
response = response.json()
if response['success']:
await user.send("Congratulations! We've sent you a domain to your email")