Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
updated button reference
Browse files
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(
|
102 |
if channel:
|
103 |
try:
|
104 |
-
message = await channel.fetch_message(
|
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
|
113 |
except discord.HTTPException as e:
|
114 |
-
print(f"Failed to fetch message with ID
|
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)"""
|