lunarflu HF Staff commited on
Commit
d206842
·
verified ·
1 Parent(s): 0593f86
Files changed (1) hide show
  1. app.py +2 -2
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[user.id] = unique_string
53
- unique_link = f"{GRADIO_APP_URL}?user_id={user.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)
 
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)