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 1/2] 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 = [] From 03d48ca3543e7c50afb50e42c520ed582a6ebeff Mon Sep 17 00:00:00 2001 From: Showdown76 <66854264+Showdown76py@users.noreply.github.com> Date: Wed, 12 Apr 2023 19:14:52 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index de9ddb4..d7848c1 100644 --- a/README.md +++ b/README.md @@ -14,3 +14,5 @@ MAX_TOKEN_PER_REQUEST = [Maximum tokens per request] (recommended: 1800-2000) TOKEN = [Your Discord bot's token] OPENAI_API_KEY = [OpenAI Token -- can be found at https://platform.openai.com/account/api-keys] ``` + +#### The `tokens.db` database is blank and contains no data.