lunarflu HF staff commited on
Commit
3a0f3d4
·
verified ·
1 Parent(s): d742895
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -25,15 +25,16 @@ async def on_ready():
25
  print(f'Logged in as {bot.user}')
26
 
27
  if BUTTON_MESSAGE_ID:
28
- channel = bot.get_channel(BUTTON_CHANNEL_ID)
29
  if channel:
30
  try:
31
- message = await channel.fetch_message(int(BUTTON_MESSAGE_ID))
32
  if message:
33
  button = DMButton(label="Verify Discord Account", style=discord.ButtonStyle.primary, user_id=ctx.author.id)
34
  view = ButtonView()
35
  view.add_item(button)
36
  await message.edit(view=view)
 
37
  except discord.NotFound:
38
  print(f"Message with ID {KNOWN_MESSAGE_ID} not found.")
39
  except discord.HTTPException as e:
 
25
  print(f'Logged in as {bot.user}')
26
 
27
  if BUTTON_MESSAGE_ID:
28
+ channel = bot.get_channel(1106995001155649680)
29
  if channel:
30
  try:
31
+ message = await channel.fetch_message(1266438263531634708)
32
  if message:
33
  button = DMButton(label="Verify Discord Account", style=discord.ButtonStyle.primary, user_id=ctx.author.id)
34
  view = ButtonView()
35
  view.add_item(button)
36
  await message.edit(view=view)
37
+ print("message edited")
38
  except discord.NotFound:
39
  print(f"Message with ID {KNOWN_MESSAGE_ID} not found.")
40
  except discord.HTTPException as e: