Spaces:
Running
Running
fix
Browse files
app.py
CHANGED
@@ -49,8 +49,8 @@ class DMButton(Button):
|
|
49 |
async def send_button(ctx):
|
50 |
if ctx.author.id == 811235357663297546:
|
51 |
unique_string = generate_unique_string()
|
52 |
-
user_tokens[
|
53 |
-
unique_link = f"{GRADIO_APP_URL}?user_id={
|
54 |
button = DMButton(label="Verify Discord Account", style=discord.ButtonStyle.primary, message=f"To complete the verification process, visit this link and click the 'sign in with Hugging Face' button: {unique_link}")
|
55 |
view = View()
|
56 |
view.add_item(button)
|
|
|
49 |
async def send_button(ctx):
|
50 |
if ctx.author.id == 811235357663297546:
|
51 |
unique_string = generate_unique_string()
|
52 |
+
user_tokens[ctx.author.id] = unique_string
|
53 |
+
unique_link = f"{GRADIO_APP_URL}?user_id={ctx.author.id}&token={unique_string}"
|
54 |
button = DMButton(label="Verify Discord Account", style=discord.ButtonStyle.primary, message=f"To complete the verification process, visit this link and click the 'sign in with Hugging Face' button: {unique_link}")
|
55 |
view = View()
|
56 |
view.add_item(button)
|