lunarflu commited on
Commit ·
06c91bb
1
Parent(s): e694d22
Synced repo using 'sync_with_huggingface' Github Action
Browse files
app.py
CHANGED
|
@@ -554,7 +554,7 @@ async def on_reaction_add(reaction, user): # ctx = await bot.get_context(reac
|
|
| 554 |
#ctx = await bot.get_context(reaction.message)
|
| 555 |
# safety checks first ✅
|
| 556 |
|
| 557 |
-
|
| 558 |
if not user.bot:
|
| 559 |
thread = reaction.message.channel
|
| 560 |
threadparentid = thread.parent.id
|
|
@@ -611,7 +611,7 @@ async def falcon(ctx, *, prompt: str):
|
|
| 611 |
global falcon_threads
|
| 612 |
global falcon_dictionary
|
| 613 |
global falcon_userid_threadid_dictionary
|
| 614 |
-
if
|
| 615 |
if ctx.channel.id == 1116089829147557999: # initial thread creation inside #falcon
|
| 616 |
if ctx.author.id not in falcon_users: # create a new one
|
| 617 |
await ctx.message.add_reaction('<a:loading:1114111677990981692>')
|
|
|
|
| 554 |
#ctx = await bot.get_context(reaction.message)
|
| 555 |
# safety checks first ✅
|
| 556 |
|
| 557 |
+
|
| 558 |
if not user.bot:
|
| 559 |
thread = reaction.message.channel
|
| 560 |
threadparentid = thread.parent.id
|
|
|
|
| 611 |
global falcon_threads
|
| 612 |
global falcon_dictionary
|
| 613 |
global falcon_userid_threadid_dictionary
|
| 614 |
+
if ctx.author not user.bot:
|
| 615 |
if ctx.channel.id == 1116089829147557999: # initial thread creation inside #falcon
|
| 616 |
if ctx.author.id not in falcon_users: # create a new one
|
| 617 |
await ctx.message.add_reaction('<a:loading:1114111677990981692>')
|