Commit Graph

362 Commits

Author SHA1 Message Date
Paillat
024bfde8a6 fix(makeprompt.py): add try-except block to handle errors when sending warning message if guild_data["images_limit_reached"] is True 2023-05-05 16:20:30 +02:00
Paillat
6effbe80ad refactor(makeprompt.py): remove print statements 2023-05-05 16:18:05 +02:00
Paillat
f144963592 refactor(makeprompt.py): remove unused code and variables
feat(makeprompt.py): add print statement to check image status for guild
2023-05-05 14:24:22 +02:00
Paillat
81b9b92d50 refactor(makeprompt.py): remove unnecessary try-except blocks and print statements
feat(makeprompt.py): add support for images data for guilds and users
2023-05-05 14:19:26 +02:00
Paillat
4c86f97fbe refactor(makeprompt.py): simplify need_ignore_message function and remove unnecessary return statement
fix(makeprompt.py): fix bug where messages in premium channels were being ignored
2023-05-05 14:12:20 +02:00
Paillat
41c73d2ee2 chore(makeprompt.py): add print statement for debugging purposes 2023-05-05 14:02:47 +02:00
Paillat
65ed0e6e07 refactor(makeprompt.py): remove unreachable code and debug statement 2023-05-05 13:58:41 +02:00
Paillat
82186386f7 fix(makeprompt.py): add exception handling to channel retrieval and debug message when no premium channels are found 2023-05-05 13:56:04 +02:00
Paillat
565d0f2956 refactor(makeprompt.py): rename variables for clarity and remove unnecessary pass statement 2023-05-05 13:47:37 +02:00
Paillat
f6b67c7913 chore(makeprompt.py): add debug print statement to get_guild_data function 2023-05-05 13:39:58 +02:00
Paillat
788827ab48 refactor(makeprompt.py): remove unused code and simplify try-except block 2023-05-05 13:35:19 +02:00
Paillat
380165fa07 fix(makeprompt.py): add exception handling and raise exception instead of pass 2023-05-05 13:31:56 +02:00
Paillat
88e9acba80 FIXED THINGS 2023-05-05 13:28:27 +02:00
Paillat
bee3680e63 Fixed wrong usage of cursor and conn with premium database 2023-05-05 13:18:26 +02:00
Paillat
205f1f5b3e refactor(setup.py): remove try-except block and simplify code for checking premium status of guild 2023-05-05 13:13:49 +02:00
Paillat
ca85067d70 fix(makeprompt.py): reverse order of messages when chat history is requested 2023-05-05 12:57:52 +02:00
Paillat
d3a7ffdaed Revert "Merge branch 'main' into dev"
This reverts commit 6fb0e5d9b2.
2023-05-05 12:46:12 +02:00
Paillat
6fb0e5d9b2 Merge branch 'main' into dev 2023-05-05 12:45:59 +02:00
Paillat
94974b2bd3 refactor(help.py, settings.py): remove debug import and debug statements
feat(settings.py): add ctx_to_guid function to convert context to guild id for database queries
feat(settings.py): add support for changing the model used by the bot
fix(settings.py): fix images command not updating the database correctly

feat(cogs/setup.py): add dms_only check to setup_dms command
refactor(cogs/setup.py): move ctx_to_guid function to config.py
refactor(cogs/setup.py): move mg_to_guid function to config.py

feat(makeprompt.py): add support for DMs conversations
fix(makeprompt.py): fix images setting retrieval from database
fix(makeprompt.py): fix guild_id to guid conversion in database queries
refactor(makeprompt.py): extract historicator function to get the channel or user of a message
refactor(makeprompt.py): remove debug statements and unused variables
2023-05-05 12:38:02 +02:00
Paillat
f8907667e0 style(chat.py, manage_chat.py): format code with black
This commit only reformats the code with the black code formatter.
2023-04-08 20:06:53 +02:00
Paillat
048905d682 refactor(moderation.py): remove commented out code in on_message() method 2023-04-08 17:49:33 +02:00
Paillat
9465e33295 style(settings.py): remove commented code and unnecessary blank lines
feat(settings.py): add default_permissions decorator to all slash commands
fix(settings.py): fix indentation in try-except block
2023-04-08 17:10:53 +02:00
Paillat
a77504a028 refactor(setup.py): add default_permissions decorator to all commands that require administrator permissions 2023-04-08 17:08:49 +02:00
Paillat
da21aa283f [BUG] Replaced database conn names 2023-04-03 15:12:50 +02:00
Paillat
88a7ad2085 [BUG] davinci prompt was returning none 2023-04-03 13:52:21 +02:00
Paillat
2391fb61f9 [BUG] Fixed always defaulting to gpt-3.5 2023-04-03 13:25:47 +02:00
Paillat
2c9a0656c3 [PROMPTS] updated gpt-4 prompt 2023-04-03 13:13:59 +02:00
Paillat
31d508efc4 [BUG] fixed pretend_to_be 2023-04-03 13:12:20 +02:00
Alexis LEBEL
55fb58cdeb [CONFIG] Of course it's print ! 2023-04-02 16:34:48 +02:00
Alexis LEBEL
d4f37afea1 [PROMPTS] Added support for custom prompts 2023-04-02 16:13:22 +02:00
Alexis LEBEL
dc48b7d21e [Images] Fixed images recognition with google 2023-04-02 14:42:37 +02:00
Alexis LEBEL
187b833474 [CONFIG] Debug to print if not on windows 2023-04-02 14:23:12 +02:00
Paillat
2e12028a16 Removed test code 2023-04-01 15:14:47 +02:00
Alexis LEBEL
24e19aabd5 [MAKEPROMPT] Fixed legacy DB support 2023-04-01 14:23:42 +02:00
Alexis LEBEL
5235cd2c0a [PROMPT] Renamed prompt 2023-04-01 13:18:14 +02:00
Alexis LEBEL
74f0aba20a [SETTINGS] More precise model 2023-04-01 13:18:06 +02:00
Alexis LEBEL
306eefbc75 [MAKEPROMPT] FIxed errors and cleaned a bit more 2023-04-01 13:17:54 +02:00
Alexis LEBEL
8cc99181c3 [VISION] Safed vision processing, not mandatory 2023-04-01 10:17:51 +02:00
Alexis LEBEL
350ef0d212 [MODERATION] Removed unused outdated function
Function that needed Google API, that I don't want mandatory
2023-04-01 10:17:27 +02:00
Alexis LEBEL
c5c12991d7 [MANAGECHAT] Cleaned up code 2023-03-31 20:46:08 +02:00
Alexis LEBEL
367a3b6082 [CHAT] Cleaned up code 2023-03-31 20:40:40 +02:00
Alexis LEBEL
b5fa78a687 [TEST] Moved test into a test folder (to be an automated test in future) 2023-03-31 20:40:02 +02:00
Alexis LEBEL
4da43c48f3 [MAKEPROMPT] Cleaned up the code, not perfect but OK 2023-03-31 20:28:09 +02:00
Alexis LEBEL
ddbeea3ae6 [GENERAL] Refactoring for DB 2023-03-31 16:11:03 +02:00
Alexis LEBEL
64df09b248 [MAKEPROMPT] Cleaned a bit
Still a lots of work to be done
2023-03-31 16:10:41 +02:00
Alexis LEBEL
bd1fa13924 [VISION] Made vision not mandatory 2023-03-31 16:10:13 +02:00
Alexis LEBEL
330e732802 [CONFIG] Cleaned up code 2023-03-31 14:20:43 +02:00
Alexis LEBEL
dd21536864 [CODE] Cleaned code.py 2023-03-31 14:13:34 +02:00
Alexis LEBEL
42cb2e9135 [GENERAL] Code reformatting using Black standard 2023-03-31 14:09:06 +02:00
Paillat
a43b206f1b Update chatGPT.txt 2023-03-21 11:20:11 +01:00