lunarflu HF Staff commited on
Commit
b79ba62
·
1 Parent(s): 0f184ab

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -651,10 +651,7 @@ async def falcon(ctx, *, prompt: str):
651
  elif ctx.author.id in falcon_userid_threadid_dictionary:
652
  # get the threadid, grab the last message in that thread, link to that message
653
  thread_id = falcon_userid_threadid_dictionary[ctx.author.id]
654
- thread = await bot.fetch_channel(thread_id)
655
- guild = bot.get_guild(879548962464493619)
656
- channel = get(guild.channels, id=thread.id)
657
- thread_link = f"https://discord.com/channels/{guild.id}/{channel.id}/{thread.id}"
658
  await ctx.reply(f"{ctx.author.mention}, you already have an existing conversation here {thread_link}! Use !falconclear in the #falcon channel to start a new one.")
659
  #------------------------------------
660
  # post all other generations here
 
651
  elif ctx.author.id in falcon_userid_threadid_dictionary:
652
  # get the threadid, grab the last message in that thread, link to that message
653
  thread_id = falcon_userid_threadid_dictionary[ctx.author.id]
654
+ thread_link = f"https://discord.com/channels/879548962464493619/1116089829147557999/{thread.id}"
 
 
 
655
  await ctx.reply(f"{ctx.author.mention}, you already have an existing conversation here {thread_link}! Use !falconclear in the #falcon channel to start a new one.")
656
  #------------------------------------
657
  # post all other generations here