added [falconmemory] and [falconhistory]
Browse files
app.py
CHANGED
|
@@ -564,7 +564,29 @@ async def on_reaction_add(reaction, user): # ctx = await bot.get_context(reac
|
|
| 564 |
|
| 565 |
#----------------------------------------------------------------------------------------------------------------------------
|
| 566 |
chathistory = None
|
| 567 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 568 |
@bot.command()
|
| 569 |
async def falcon(ctx, *, prompt: str):
|
| 570 |
try:
|
|
|
|
| 564 |
|
| 565 |
#----------------------------------------------------------------------------------------------------------------------------
|
| 566 |
chathistory = None
|
| 567 |
+
@bot.command()
|
| 568 |
+
async def falconclear(ctx):
|
| 569 |
+
try:
|
| 570 |
+
if await safetychecks(ctx):
|
| 571 |
+
if ctx.channel.id == 116089829147557999:
|
| 572 |
+
global chathistory
|
| 573 |
+
chathistory = None
|
| 574 |
+
await ctx.reply(f"memory has been cleared: memory = {chathistory}")
|
| 575 |
+
except Exception as e:
|
| 576 |
+
print(f"Error: {e}")
|
| 577 |
+
await ctx.reply(f"{e} cc <@811235357663297546> (falcon clear error)")
|
| 578 |
+
#----------------------------------------------------------------------------------------------------------------------------
|
| 579 |
+
@bot.command()
|
| 580 |
+
async def falconmemory(ctx):
|
| 581 |
+
try:
|
| 582 |
+
if await safetychecks(ctx):
|
| 583 |
+
if ctx.channel.id == 116089829147557999:
|
| 584 |
+
global chathistory
|
| 585 |
+
await ctx.reply(f"Memory = {chathistory}")
|
| 586 |
+
except Exception as e:
|
| 587 |
+
print(f"Error: {e}")
|
| 588 |
+
await ctx.reply(f"{e} cc <@811235357663297546> (falcon history error)")
|
| 589 |
+
#----------------------------------------------------------------------------------------------------------------------------
|
| 590 |
@bot.command()
|
| 591 |
async def falcon(ctx, *, prompt: str):
|
| 592 |
try:
|