Commit Graph

  • 1b02f27f41 📦 chore(requirements.txt): update disco.oauth2 package to discord-oauth2.py for compatibility Paillat 2023-08-15 00:27:08 +02:00
  • b0f4b4aa55 📦 chore(requirements.txt): add black to the list of dependencies for code formatting consistency Paillat 2023-08-14 23:43:15 +02:00
  • eb20e06700 📦 chore(requirements.txt): add 'disco.oauth2' package to the requirements Paillat 2023-08-14 23:40:33 +02:00
  • cc83447a39 🔧 chore(.gitignore): add '*.ovpn' and 'tests/' to the list of ignored files and directories Paillat 2023-08-14 23:24:32 +02:00
  • f0e8a37a7f 🔥 chore(test-google-vision.py): remove unused code and dependencies Paillat 2023-08-14 23:24:01 +02:00
  • b4dc56d97f 📐 improve(*): run black to format the code Paillat 2023-08-03 14:01:49 +02:00
  • c9ecf54bf4 test formatting Paillat 2023-08-03 14:01:35 +02:00
  • 0e22a01310 ­ƒøá´©Å chore(format): run black to format the code Paillat 2023-08-03 13:58:44 +02:00
  • 33082e860b Merge branch 'main' of https://github.com/Paillat-dev/Botator Paillat 2023-08-03 13:54:54 +02:00
  • 9324785ee1 Delete opencommit.yml Paillat 2023-08-03 13:32:03 +02:00
  • 0e7f8948a6 🔀 refactor(functionscalls.py): update import statement for tenor_api_key to use absolute path for better module resolution Paillat 2023-08-03 13:31:06 +02:00
  • 318d0d568e chore(functionscalls.py): fix import statement for tenor_api_key to use absolute path for better module resolution Paillat 2023-08-03 13:31:06 +02:00
  • 8bb99a4ee9 🔧 chore(opencommit.yml): enable emoji support in OpenCommit workflow for more expressive commit messages Paillat 2023-08-03 13:13:20 +02:00
  • 5318bda74c 🔧 chore(openaicaller.py): remove unnecessary blank line to improve code readability Paillat 2023-08-02 21:48:16 +02:00
  • 3a92aafe9a feat(opencommit.yml): enable emoji support in OpenCommit workflow to enhance commit message formatting 🔥 chore(gpt-4.txt): remove gpt-4.txt prompt file as it is no longer needed Paillat 2023-08-02 21:45:58 +02:00
  • 762570d2c6 chore(opencommit.yml): update OpenCommit workflow configuration Paillat 2023-08-02 21:29:17 +02:00
  • 800c86bd99 chore(opencommit.yml): add GitHub Actions workflow file for OpenCommit project Paillat 2023-08-02 21:24:28 +02:00
  • 5d6c07aea7 chore(gpt-3.5-turbo.txt): add website link to the prompt for reference Paillat 2023-08-02 21:22:21 +02:00
  • 985fcc4663 refactor(misc.py): remove unnecessary argument 'api_key' from moderate function call to openai_caller Paillat 2023-08-02 21:16:59 +02:00
  • 713329c512 refactor(makeprompt.py): remove unnecessary api_key argument from openai_caller function call The api_key argument is not needed in the openai_caller function call as it is not being used within the function. Removing the argument improves code readability and removes unnecessary code. Paillat 2023-08-02 20:29:12 +02:00
  • f842fa8133 fix(openaicaller.py): fix import statement for num_tokens_from_messages to use the correct path Paillat 2023-08-02 20:16:55 +02:00
  • 94ced79a21 refactor(makeprompt.py): remove unnecessary line that sends response content in chatgpt_process function Paillat 2023-08-02 20:12:49 +02:00
  • a7a0f5dac8 fix(makeprompt.py): add api_key parameter to the generate_response function call to fix missing api_key error fix(openaicaller.py): fix import statement for num_tokens_from_messages function refactor(openaicaller.py): remove unused api_key parameter from openai_caller class constructor refactor(openaicaller.py): change generate_response and moderation methods to accept variable number of arguments refactor(openaicaller.py): change error_call parameter to be optional and provide a default function if not provided refactor(openaicaller.py): remove unused api_key parameter from generate_response and moderation methods refactor(openaicaller.py): remove unused api_key parameter from main function Paillat 2023-08-02 20:12:06 +02:00
  • 45dfafadd8 Merge pull request #49 from Paillat-dev/dev Paillat 2023-08-02 10:59:02 +02:00
  • 19dd6c9c62 fix(makeprompt.py): fix issue where long response content is not fully sent in chatgpt_process function Paillat 2023-08-02 10:49:25 +02:00
  • e1f9c91bde refactor(main.py): change bot's presence activity to display the number of servers the bot is in feat(main.py): add event handler for on_guild_join to update bot's presence activity when joining a new server Paillat 2023-07-19 19:51:05 +02:00
  • 407cc40dbe fix(openaicaller.py): improve error message when APIError occurs to clarify that it is OpenAI's fault and apologize for the inconvenience Paillat 2023-07-19 17:00:55 +02:00
  • 6672bd2582 refactor(functionscalls.py): remove unnecessary print statements for image_url and json variables Paillat 2023-07-19 00:09:35 +02:00
  • 9af9b600d5 chore(gpt-3.5-turbo.txt): update instructions for Botator in the Discord server Paillat 2023-07-18 23:39:21 +02:00
  • 98195b29e3 Format with black Paillat 2023-07-18 23:23:47 +02:00
  • a9f85e9ac9 Merge branch 'dev' of https://github.com/Paillat-dev/Botator into dev Paillat 2023-07-18 23:18:59 +02:00
  • 89778cbd3b fix(requirements.txt): add bs4 package to requirements.txt for BeautifulSoup usage feat(functionscalls.py): add new functions send_ascii_art_text and send_ascii_art_image to send messages and images in ascii art fix(makeprompt.py): import send_ascii_art_text and send_ascii_art_image functions and add corresponding if statements to handle function calls Paillat 2023-07-18 23:18:47 +02:00
  • bc5721c1b7 Update black.yml Paillat 2023-07-18 21:57:03 +02:00
  • e91fafdc51 fix(config.py): fix typo in max_uses variable declaration feat(config.py): add support for TENOR_API_KEY environment variable to be able to use Tenor API for sending gifs feat(functionscalls.py): add new function send_a_gif to send a gif in the channel fix(makeprompt.py): add support for calling send_a_gif function in chatgpt_process function Paillat 2023-07-18 21:53:07 +02:00
  • 12f13ca6c4 Format with black Paillat 2023-07-18 17:51:13 +02:00
  • 4b192f779e Create black.yml Paillat 2023-07-18 17:23:06 +02:00
  • 719ad81d1d Add dpcker instruczions Paillat 2023-07-18 17:14:41 +02:00
  • 1b7e0d7979 Create docker-publish.yml Paillat 2023-07-18 17:09:36 +02:00
  • 09c6e60575 Delete buildDockerImage.yml Paillat 2023-07-18 17:07:27 +02:00
  • fb51f737d9 Merge pull request #43 from Paillat-dev/dev Paillat 2023-07-18 16:28:54 +02:00
  • 2a7c553c91 chore(gpt-3.5-turbo.txt): update prompt to include instructions for correcting pronouns and limit the use of emojis dev-old Paillat 2023-07-18 12:12:05 +02:00
  • 2f6501578d chore(gpt-3.5-turbo.txt): update guidelines for chatbot responses Paillat 2023-07-17 19:00:50 +02:00
  • 045fdca866 chore(gpt-3.5-turbo.txt): update instructions to reflect new markdown capabilities in Discord Paillat 2023-07-17 18:46:01 +02:00
  • 04edeebe22 chore(gpt-3.5-turbo.txt): add new behavior to insult people back in a funny way when insulted docs(gpt-3.5-turbo.txt): update instructions to use level 1, 2, and 3 markdown headings Paillat 2023-07-17 18:44:21 +02:00
  • d4837bb8e6 refactor(functionscalls.py): add aiohttp import to improve code readability and maintainability refactor(functionscalls.py): extract get_final_url function to improve code modularity and reusability refactor(functionscalls.py): simplify send_a_stock_image function by using get_final_url function and improving message formatting Paillat 2023-07-17 18:42:45 +02:00
  • 31eaf60ba1 Fixed error with textchannel ony function and deprecated some comands Paillat 2023-07-16 22:43:18 +02:00
  • 0e03dce42d docs(gpt-3.5-turbo.txt): add information about using level 1, 2, and 3 markdown headings in Discord Paillat 2023-07-16 21:26:50 +02:00
  • e7948a4e67 chore(main.py): remove redundant bot.run() call at the top of the file feat(main.py): add newline at the end of the file for consistency chore(functionscalls.py): remove extra blank lines feat(functionscalls.py): add unsplash_random_image_url constant for generating random image URLs feat(functionscalls.py): add add_reaction_to_last_message() function for adding reactions to the last message Paillat 2023-07-16 21:18:30 +02:00
  • ad5f0b30d1 chore(gpt-3.5-turbo.txt): update prompt to include instructions for correcting pronouns and limit the use of emojis Paillat 2023-07-18 12:12:05 +02:00
  • 83629f3ce7 chore(gpt-3.5-turbo.txt): update guidelines for chatbot responses Paillat 2023-07-17 19:00:50 +02:00
  • 1a434fff92 chore(gpt-3.5-turbo.txt): update instructions to reflect new markdown capabilities in Discord Paillat 2023-07-17 18:46:01 +02:00
  • 0e12129a90 chore(gpt-3.5-turbo.txt): add new behavior to insult people back in a funny way when insulted docs(gpt-3.5-turbo.txt): update instructions to use level 1, 2, and 3 markdown headings Paillat 2023-07-17 18:44:21 +02:00
  • e48b65f6d9 refactor(functionscalls.py): add aiohttp import to improve code readability and maintainability refactor(functionscalls.py): extract get_final_url function to improve code modularity and reusability refactor(functionscalls.py): simplify send_a_stock_image function by using get_final_url function and improving message formatting Paillat 2023-07-17 18:42:45 +02:00
  • 41b2fde1e6 Fixed error with textchannel ony function and deprecated some comands Paillat 2023-07-16 22:43:18 +02:00
  • 06b0e921db docs(gpt-3.5-turbo.txt): add information about using level 1, 2, and 3 markdown headings in Discord Paillat 2023-07-16 21:26:50 +02:00
  • bd8a7922bd chore(main.py): remove redundant bot.run() call at the top of the file feat(main.py): add newline at the end of the file for consistency chore(functionscalls.py): remove extra blank lines feat(functionscalls.py): add unsplash_random_image_url constant for generating random image URLs feat(functionscalls.py): add add_reaction_to_last_message() function for adding reactions to the last message Paillat 2023-07-16 21:18:30 +02:00
  • bc65a98742 Merge branch 'dev' of https://github.com/Paillat-dev/Botator into dev Paillat 2023-07-16 20:48:33 +02:00
  • 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 Paillat 2023-07-16 20:48:07 +02:00
  • 48f4831c6f Merge pull request #41 from Paillat-dev/main Paillat 2023-07-16 20:43:18 +02:00
  • a7fb55adba Squashed commit of the following: Paillat 2023-07-16 20:41:51 +02:00
  • 8da8703566 chore(Dockerfile): change working directory from /Botator/code/ to /Botator/ to match the cloned repository structure Paillat 2023-07-16 20:41:18 +02:00
  • 84b464e9c8 Merge branch 'dev' Paillat 2023-07-16 20:27:25 +02:00
  • e37377a791 Commit Paillat 2023-07-16 17:16:41 +02:00
  • 4b84e53557 chore(gpt-3.5-turbo.txt): update guidelines for Botator's behavior Paillat 2023-07-16 17:15:51 +02:00
  • 2fe793e7a4 fix(openaicaller.py): remove sensitive information from the API key fix(openaicaller.py): fix typo in the API key Paillat 2023-07-16 17:12:21 +02:00
  • 6c404c3803 FIxed stuff Paillat 2023-07-16 17:11:24 +02:00
  • 4f9a7eb0a6 Added function calling and lots of other stuff Paillat 2023-07-15 12:20:38 +02:00
  • 0ce8e2d6d3 chore(docker-compose.yml): remove unnecessary environment variables Paillat 2023-07-14 17:54:40 +02:00
  • 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 Paillat 2023-07-14 17:53:59 +02:00
  • deb27ea5e4 Update makeprompt.py Paillat 2023-05-16 12:07:02 +02:00
  • c2543b4796 e Paillat 2023-05-16 12:06:21 +02:00
  • 20bb931491 Reverted changes Paillat 2023-05-16 10:02:35 +02:00
  • 024bfde8a6 fix(makeprompt.py): add try-except block to handle errors when sending warning message if guild_data["images_limit_reached"] is True Paillat 2023-05-05 16:20:30 +02:00
  • 6effbe80ad refactor(makeprompt.py): remove print statements Paillat 2023-05-05 16:18:05 +02:00
  • f144963592 refactor(makeprompt.py): remove unused code and variables feat(makeprompt.py): add print statement to check image status for guild Paillat 2023-05-05 14:24:22 +02:00
  • 81b9b92d50 refactor(makeprompt.py): remove unnecessary try-except blocks and print statements feat(makeprompt.py): add support for images data for guilds and users Paillat 2023-05-05 14:19:26 +02:00
  • 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 Paillat 2023-05-05 14:12:20 +02:00
  • 41c73d2ee2 chore(makeprompt.py): add print statement for debugging purposes Paillat 2023-05-05 14:02:47 +02:00
  • 65ed0e6e07 refactor(makeprompt.py): remove unreachable code and debug statement Paillat 2023-05-05 13:58:41 +02:00
  • 82186386f7 fix(makeprompt.py): add exception handling to channel retrieval and debug message when no premium channels are found Paillat 2023-05-05 13:56:04 +02:00
  • 565d0f2956 refactor(makeprompt.py): rename variables for clarity and remove unnecessary pass statement Paillat 2023-05-05 13:47:37 +02:00
  • f6b67c7913 chore(makeprompt.py): add debug print statement to get_guild_data function Paillat 2023-05-05 13:39:58 +02:00
  • 788827ab48 refactor(makeprompt.py): remove unused code and simplify try-except block Paillat 2023-05-05 13:35:19 +02:00
  • 380165fa07 fix(makeprompt.py): add exception handling and raise exception instead of pass Paillat 2023-05-05 13:31:56 +02:00
  • 88e9acba80 FIXED THINGS Paillat 2023-05-05 13:28:27 +02:00
  • bee3680e63 Fixed wrong usage of cursor and conn with premium database Paillat 2023-05-05 13:18:26 +02:00
  • 205f1f5b3e refactor(setup.py): remove try-except block and simplify code for checking premium status of guild Paillat 2023-05-05 13:13:49 +02:00
  • ca85067d70 fix(makeprompt.py): reverse order of messages when chat history is requested Paillat 2023-05-05 12:57:52 +02:00
  • 02b83b71c2 fix(makeprompt.py): reverse order of messages when chat history is requested Paillat 2023-05-05 12:56:27 +02:00
  • 9c9d674b18 Merge pull request #39 from Paillat-dev/dev Paillat 2023-05-05 12:48:04 +02:00
  • f145e097b1 Merge pull request #38 from Paillat-dev/Paillat-dev-patch-1 Paillat 2023-05-05 12:47:21 +02:00
  • 0ea26727ec Update chatGPT.txt Paillat 2023-05-05 12:47:09 +02:00
  • d3a7ffdaed Revert "Merge branch 'main' into dev" Paillat 2023-05-05 12:46:12 +02:00
  • 6fb0e5d9b2 Merge branch 'main' into dev Paillat 2023-05-05 12:45:59 +02:00
  • 4d7d192eff feat(Dockerfile): clone Botator repository and set working directory to /Botator/code/ Paillat 2023-05-05 12:38:59 +02:00
  • 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 Paillat 2023-05-05 12:38:02 +02:00
  • f8907667e0 style(chat.py, manage_chat.py): format code with black Paillat 2023-04-08 20:06:53 +02:00
  • 048905d682 refactor(moderation.py): remove commented out code in on_message() method Paillat 2023-04-08 17:49:33 +02:00
  • 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 Paillat 2023-04-08 17:10:53 +02:00
  • a77504a028 refactor(setup.py): add default_permissions decorator to all commands that require administrator permissions Paillat 2023-04-08 17:08:49 +02:00