NihalGazi commited on
Commit
f45da3f
·
verified ·
1 Parent(s): 6569be0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- await channel.send(f'`{original_text}` in {target_lang}: `{translated_text}`')
 
82
 
83
  def run_discord_bot():
84
- bot.run("MTM1MjI2OTQ4MTQwNTE4NjA3MA.GrdeHW.rYndSNvb9mepFdp_uTK4IOAmKwt31QER6hRgzg") # Replace with your bot token
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()