lunarflu HF Staff commited on
Commit
314ff34
·
1 Parent(s): 448f731

[TRY_FALCON] + (interaction)

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -80,12 +80,12 @@ async def on_ready():
80
  prompt='Enter some text to chat with the bot! Like this: /falcon Hello, how are you?')
81
  async def falcon(interaction: discord.Interaction, prompt: str):
82
  try:
83
- await try_falcon(prompt)
84
 
85
  except Exception as e:
86
  print(f"Error: {e}")
87
  #-------------------------------------------------------------------------------------------------------------------------------------
88
- async def try_falcon(prompt):
89
  try:
90
  global falcon_userid_threadid_dictionary # tracks userid-thread existence
91
  global instructions
 
80
  prompt='Enter some text to chat with the bot! Like this: /falcon Hello, how are you?')
81
  async def falcon(interaction: discord.Interaction, prompt: str):
82
  try:
83
+ await try_falcon(interaction, prompt)
84
 
85
  except Exception as e:
86
  print(f"Error: {e}")
87
  #-------------------------------------------------------------------------------------------------------------------------------------
88
+ async def try_falcon(interaction, prompt):
89
  try:
90
  global falcon_userid_threadid_dictionary # tracks userid-thread existence
91
  global instructions