lunarflu HF staff commited on
Commit
963edf4
·
verified ·
1 Parent(s): d76e12c

updated button reference

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -98,10 +98,10 @@ async def on_ready():
98
  print(f'Logged in as {bot.user.name}')
99
  print(f"XP_PER_MESSAGE: {XP_PER_MESSAGE}")
100
 
101
- channel = bot.get_channel(932563860597121054)
102
  if channel:
103
  try:
104
- message = await channel.fetch_message(1269917762327674974)
105
  if message:
106
  button = DMButton(label="Verify Discord Account", style=discord.ButtonStyle.primary)
107
  view = View(timeout=None)
@@ -109,9 +109,9 @@ async def on_ready():
109
  await message.edit(view=view)
110
  print("message edited")
111
  except discord.NotFound:
112
- print(f"Message with ID 00000000 not found.")
113
  except discord.HTTPException as e:
114
- print(f"Failed to fetch message with ID 00000000: {e}")
115
 
116
 
117
  """import data from google sheets -> HF Space df (doesn't make API call this way, as it's read-only)"""
 
98
  print(f'Logged in as {bot.user.name}')
99
  print(f"XP_PER_MESSAGE: {XP_PER_MESSAGE}")
100
 
101
+ channel = bot.get_channel(900125909984624713)
102
  if channel:
103
  try:
104
+ message = await channel.fetch_message(1271145797433557023)
105
  if message:
106
  button = DMButton(label="Verify Discord Account", style=discord.ButtonStyle.primary)
107
  view = View(timeout=None)
 
109
  await message.edit(view=view)
110
  print("message edited")
111
  except discord.NotFound:
112
+ print(f"Message with ID 1271145797433557023 not found.")
113
  except discord.HTTPException as e:
114
+ print(f"Failed to fetch message with ID 1271145797433557023: {e}")
115
 
116
 
117
  """import data from google sheets -> HF Space df (doesn't make API call this way, as it's read-only)"""