f896001305
🐛 fix(ChatProcess.py): handle exceptions and send error message with logs to the user when an error occurs during message processing
...
🐛 fix(channelSetup.py): format code to improve readability and adhere to PEP 8 style guide
🐛 fix(makeprompt.py): fix spacing issue in if statement
🐛 fix(openaicaller.py): format code to improve readability and adhere to PEP 8 style guide
2023-09-01 11:20:29 +02:00
cc28f3d4a1
🐛 fix(openaicaller.py): fix error in generate_response method where error_call argument is not properly handled
...
✨ feat(openaicaller.py): add default value for error_call argument in generate_response method to prevent potential errors
2023-08-23 15:39:19 +02:00
2bb5f42df8
🐛 fix(openaicaller.py): fix condition to check for error_call argument in generate_response method
2023-08-23 15:24:12 +02:00
e4b8e2824b
✨ feat(server.ts): change port variable case from lowercase port to uppercase PORT to improve semantics
...
✨ feat(server.ts): add support for process.env.PORT environment variable to be able to run app on a configurable port
🐛 fix(main.py): remove duplicate cog addition in main.py
✨ feat(main.py): add cogs.Help(bot) to the list of cogs in main.py
🐛 fix(main.py): remove redundant import statements in main.py
✨ feat(main.py): add on_guild_remove event handler in main.py
✨ feat(main.py): add on_guild_join event handler in main.py
✨ feat(main.py): add support for discord.Intents in main.py
✨ feat(main.py): add intents.message_content = True in main.py
✨ feat(main.py): add intents.default() in main.py
✨ feat(main.py): add discord.Bot(intents=intents, help_command=None) in main.py
✨ feat(main.py): add import statements in main.py
✨ feat(main.py): add from src.config import debug, discord_token in main.py
✨ feat(main.py): add import discord in main.py
✨ feat(main.py): add import src.config in main.py
✨ feat(main.py): add import src.cogs in main.py
✨ feat(main.py): add import src.cogs.chat in main.py
✨ feat(main.py): add import src.cogs.manage_chat in main.py
✨ feat(main.py): add import src.cogs.moderation in main.py
✨ feat(main.py): add import src.cogs.channelSetup in main.py
✨ feat(main.py): add import src.cogs.help in main.py
✨ feat(main.py): add import src.cogs.Chat in main.py
✨ feat(main.py): add import src.cogs.ManageChat in main.py
✨ feat(main.py): add import src.cogs.Moderation in main.py
✨ feat(main.py): add import src.cogs.ChannelSetup in main.py
✨ feat(main.py): add import src.cogs.Help in main.py
✨ feat(main.py): add import src.cogs.chat in main.py
✨ feat(main.py): add import src.cogs.manage_chat in main.py
✨ feat(main.py): add import src.cogs.moderation in main.py
✨ feat(main.py): add
2023-08-20 12:42:02 +02:00
Paillat
5318bda74c
🔧 chore(openaicaller.py): remove unnecessary blank line to improve code readability
2023-08-03 11:15:20 +00:00
Paillat
f842fa8133
fix(openaicaller.py): fix import statement for num_tokens_from_messages to use the correct path
2023-08-02 20:16:55 +02:00
Paillat
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
2023-08-02 20:12:06 +02:00
Paillat
407cc40dbe
fix(openaicaller.py): improve error message when APIError occurs to clarify that it is OpenAI's fault and apologize for the inconvenience
2023-07-19 17:00:55 +02:00
12f13ca6c4
Format with black
2023-07-18 17:51:13 +02:00
Paillat
41b2fde1e6
Fixed error with textchannel ony function and deprecated some comands
2023-07-16 22:43:18 +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