From c15d4d7f528b9452587d083bf33f283637ef238c Mon Sep 17 00:00:00 2001 From: Showdown76 <66854264+Showdown76py@users.noreply.github.com> Date: Wed, 12 Apr 2023 19:09:27 +0200 Subject: [PATCH] Update main.py --- main.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/main.py b/main.py index cfc451a..c02ea5e 100644 --- a/main.py +++ b/main.py @@ -50,7 +50,6 @@ def num_tokens_from_string(string: str) -> int: @app.event async def on_message(message: discord.Message): - print('msg received') if not isinstance(message.channel, discord.DMChannel): return if message.author.id == app.user.id: return try: @@ -85,7 +84,6 @@ async def on_message(message: discord.Message): for arg in arguments.keys(): bprompt = bprompt.replace(f'|{arg}|', arguments[arg]) previous_tokens = 200+len(bprompt)+message_token_usage - print(bprompt) # (message_id, user_id, content, token, role, timestamp) # order by timestamp (most recent to least recent) usable_messages = []