Commit Graph

555 Commits

Author SHA1 Message Date
Paillat
4b84e53557 chore(gpt-3.5-turbo.txt): update guidelines for Botator's behavior
The guidelines for Botator's behavior have been updated to reflect the following changes:

- The use of "u" instead of "you" and "ur" instead of "your" is allowed to maintain a casual and humorous tone.
- Botator will never proactively ask the user if they need help. Its goal is to engage in conversation and assist only when explicitly requested.
- Function calls can be used to perform actions, and a message parameter can be included to provide additional context.
- Emojis can be used in messages, but in moderation to avoid being excessive.
- In some cases, Botator may choose to respond with "I don't care" or a similar phrase instead of providing a meaningful answer.

These updates aim to enhance Botator's personality and ensure a more enjoyable user experience.
2023-07-16 17:15:51 +02:00
Paillat
2fe793e7a4 fix(openaicaller.py): remove sensitive information from the API key
fix(openaicaller.py): fix typo in the API key
2023-07-16 17:12:21 +02:00
Paillat
6c404c3803 FIxed stuff 2023-07-16 17:11:24 +02:00
Paillat
4f9a7eb0a6 Added function calling and lots of other stuff 2023-07-15 12:20:38 +02:00
Paillat
0ce8e2d6d3 chore(docker-compose.yml): remove unnecessary environment variables 2023-07-14 17:54:40 +02:00
Paillat
a0e387b2fb fix(google-palm-process.py): replace actual API key with placeholder 'S'
fix(docker-compose.yml): add build configuration for botator service
feat(docker-compose.yml): add env_file configuration for botator service
2023-07-14 17:53:59 +02:00
Paillat
deb27ea5e4 Update makeprompt.py 2023-05-16 12:07:02 +02:00
Paillat
c2543b4796 e 2023-05-16 12:06:21 +02:00
Paillat
20bb931491 Reverted changes 2023-05-16 10:02:35 +02:00
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
02b83b71c2 fix(makeprompt.py): reverse order of messages when chat history is requested 2023-05-05 12:56:27 +02:00
Paillat
9c9d674b18 Merge pull request #39 from Paillat-dev/dev
Dev
2023-05-05 12:48:04 +02:00
Paillat
f145e097b1 Merge pull request #38 from Paillat-dev/Paillat-dev-patch-1
Update chatGPT.txt
2023-05-05 12:47:21 +02:00
Paillat
0ea26727ec Update chatGPT.txt 2023-05-05 12:47:09 +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
4d7d192eff feat(Dockerfile): clone Botator repository and set working directory to /Botator/code/ 2023-05-05 12:38: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
4b1756ede4 Update chatGPT.txt 2023-04-06 18:28:15 +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
Paillat
9f4c0f2142 Merge pull request #36 from Alestrio/dev
[DOCKER/VISION]
2023-04-02 16:57:08 +02:00
Alexis LEBEL
e617557683 Merge branch 'main' into dev 2023-04-02 16:47:14 +02:00
Alexis LEBEL
55fb58cdeb [CONFIG] Of course it's print ! 2023-04-02 16:34:48 +02:00
Alexis LEBEL
c299b046d8 Merge branch 'dev' into main 2023-04-02 16:13:29 +02:00
Alexis LEBEL
d4f37afea1 [PROMPTS] Added support for custom prompts 2023-04-02 16:13:22 +02:00
Alexis LEBEL
778330b2e2 Merge branch 'main' into dev 2023-04-02 15:09:11 +02:00
Alexis LEBEL
dc48b7d21e [Images] Fixed images recognition with google 2023-04-02 14:42:37 +02:00