Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -78,10 +78,11 @@ async def on_raw_reaction_add(payload):
|
|
78 |
print(f"Error during GET request: {e}")
|
79 |
translated_text = "[Error translating text]"
|
80 |
|
81 |
-
|
|
|
82 |
|
83 |
def run_discord_bot():
|
84 |
-
bot.run("MTM1MjI2OTQ4MTQwNTE4NjA3MA.GrdeHW.rYndSNvb9mepFdp_uTK4IOAmKwt31QER6hRgzg") # Replace with your
|
85 |
|
86 |
# Run the Discord bot in a separate daemon thread
|
87 |
threading.Thread(target=run_discord_bot, daemon=True).start()
|
|
|
78 |
print(f"Error during GET request: {e}")
|
79 |
translated_text = "[Error translating text]"
|
80 |
|
81 |
+
# Reply to the original message so that it is tagged
|
82 |
+
await message.reply(f"`{translated_text}`")
|
83 |
|
84 |
def run_discord_bot():
|
85 |
+
bot.run("MTM1MjI2OTQ4MTQwNTE4NjA3MA.GrdeHW.rYndSNvb9mepFdp_uTK4IOAmKwt31QER6hRgzg") # Replace with your actual token
|
86 |
|
87 |
# Run the Discord bot in a separate daemon thread
|
88 |
threading.Thread(target=run_discord_bot, daemon=True).start()
|