fix: Send discord user id with faucet request
All checks were successful
Build Docker / Build Image (push) Successful in 20s
All checks were successful
Build Docker / Build Image (push) Successful in 20s
This commit is contained in:
parent
ddc0deccef
commit
b9fe89801e
@ -14,7 +14,7 @@ async def send_domain(user, email):
|
|||||||
await user.send("Your email is invalid")
|
await user.send("Your email is invalid")
|
||||||
return
|
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()
|
response = response.json()
|
||||||
if response['success']:
|
if response['success']:
|
||||||
await user.send("Congratulations! We've sent you a domain to your email")
|
await user.send("Congratulations! We've sent you a domain to your email")
|
||||||
|
Loading…
Reference in New Issue
Block a user