Commit Graph

487 Commits

Author SHA1 Message Date
Paillat
ca897cac2a chore(Dockerfile): remove trailing slash in WORKDIR path to improve consistency
chore(Dockerfile): update chown command to apply ownership to the entire /Botator directory instead of just /Botator/code
2023-07-16 20:48:07 +02:00
Paillat
a7fb55adba Squashed commit of the following:
commit 8da8703566
Author: Paillat <git@electronique.cc>
Date:   Sun Jul 16 20:41:18 2023 +0200

    chore(Dockerfile): change working directory from /Botator/code/ to /Botator/ to match the cloned repository structure

commit 84b464e9c8
Merge: 20bb931 e37377a
Author: Paillat <git@electronique.cc>
Date:   Sun Jul 16 20:27:25 2023 +0200

    Merge branch 'dev'

commit 20bb931491
Author: Paillat <git@electronique.cc>
Date:   Tue May 16 10:02:35 2023 +0200

    Reverted changes

commit 024bfde8a6
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 16:20:30 2023 +0200

    fix(makeprompt.py): add try-except block to handle errors when sending warning message if guild_data["images_limit_reached"] is True

commit 6effbe80ad
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 16:18:05 2023 +0200

    refactor(makeprompt.py): remove print statements

commit f144963592
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 14:24:22 2023 +0200

    refactor(makeprompt.py): remove unused code and variables
    feat(makeprompt.py): add print statement to check image status for guild

commit 81b9b92d50
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 14:19:26 2023 +0200

    refactor(makeprompt.py): remove unnecessary try-except blocks and print statements
    feat(makeprompt.py): add support for images data for guilds and users

commit 4c86f97fbe
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 14:12:20 2023 +0200

    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

commit 41c73d2ee2
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 14:02:47 2023 +0200

    chore(makeprompt.py): add print statement for debugging purposes

commit 65ed0e6e07
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 13:58:41 2023 +0200

    refactor(makeprompt.py): remove unreachable code and debug statement

commit 82186386f7
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 13:56:04 2023 +0200

    fix(makeprompt.py): add exception handling to channel retrieval and debug message when no premium channels are found

commit 565d0f2956
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 13:47:37 2023 +0200

    refactor(makeprompt.py): rename variables for clarity and remove unnecessary pass statement

commit f6b67c7913
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 13:39:58 2023 +0200

    chore(makeprompt.py): add debug print statement to get_guild_data function

commit 788827ab48
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 13:35:19 2023 +0200

    refactor(makeprompt.py): remove unused code and simplify try-except block

commit 380165fa07
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 13:31:56 2023 +0200

    fix(makeprompt.py): add exception handling and raise exception instead of pass

commit 88e9acba80
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 13:28:27 2023 +0200

    FIXED THINGS

commit bee3680e63
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 13:18:26 2023 +0200

    Fixed wrong usage of cursor and conn with premium database

commit 205f1f5b3e
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 13:13:49 2023 +0200

    refactor(setup.py): remove try-except block and simplify code for checking premium status of guild

commit ca85067d70
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 12:57:52 2023 +0200

    fix(makeprompt.py): reverse order of messages when chat history is requested

commit 9c9d674b18
Merge: f145e09 d3a7ffd
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 12:48:04 2023 +0200

    Merge pull request #39 from Paillat-dev/dev

    Dev

commit f145e097b1
Merge: 4b1756e 0ea2672
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 12:47:21 2023 +0200

    Merge pull request #38 from Paillat-dev/Paillat-dev-patch-1

    Update chatGPT.txt

commit 0ea26727ec
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 12:47:09 2023 +0200

    Update chatGPT.txt

commit 4b1756ede4
Author: Paillat <git@electronique.cc>
Date:   Thu Apr 6 18:28:15 2023 +0200

    Update chatGPT.txt
2023-07-16 20:41:51 +02:00
Paillat
e37377a791 Commit 2023-07-16 17:16:41 +02:00
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
02b83b71c2 fix(makeprompt.py): reverse order of messages when chat history is requested 2023-05-05 12:56:27 +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
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
Alexis LEBEL
187b833474 [CONFIG] Debug to print if not on windows 2023-04-02 14:23:12 +02:00
Alexis LEBEL
506be81afb [GH/DOCKER] Enhanced build action, added arm64 2023-04-02 14:06:05 +02:00
Alexis LEBEL
57036ddf14 Merge branch 'dev' into main 2023-04-02 13:19:18 +02:00
Paillat
2e12028a16 Removed test code 2023-04-01 15:14:47 +02:00
Paillat
a53b38b735 Merge pull request #34 from Alestrio/dev
Dev
2023-04-01 14:50:17 +02:00
Alexis LEBEL
aea9502cdc [DOCKERFILE] Files already mounted 2023-04-01 14:31:13 +02:00
Alexis LEBEL
24e19aabd5 [MAKEPROMPT] Fixed legacy DB support 2023-04-01 14:23:42 +02:00
Alexis LEBEL
a99374d590 [REQUIREMENTS] Cleaned requirements 2023-04-01 14:06:29 +02:00
Alexis LEBEL
98ba99dd68 [COMPOSE] Corrected volume (Didn't verify copilot lmao) 2023-04-01 14:04:13 +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
dd14472447 [COMPOSE] Sample compose file 2023-04-01 10:18:23 +02:00
Alexis LEBEL
5c7993f0d3 [DOCKERFILE] Now makes a container ! :) 2023-04-01 10:18:09 +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