You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactors the chatbot functionality into a ChatBot class within chatbot.py, centralizing the chatbot logic for shared use across different parts of the application.
The server.py and irc_chatbot.py files have been updated to import and utilize this new class, streamlining the process of handling chat messages. This change ensures that any updates to the chatbot's core functionalities only need to be made in chatbot.py, simplifying maintenance and enhancing code reusability.
Additionally, the update includes handling for multi-line responses in the IRC bot to ensure proper message formatting in the IRC environment. (preventing carriage error from multi-line response)