TJ-Bot
TJ-Bot copied to clipboard
refactor HelpThreadCreatedListener
Resolving error:
more context for bugfix : discord conversation
replacing onChannelCreate with onMessageRecieved for HelpThreadCreatedListenerFlow this also ensures that we no longer need additional delay in creating automated response or gpt response. Not only makes code a bit less complex but also possibly resolves this error around unknown message
- move write to db in a method
- use messageRecieved instead of onChannelCreate
- rename createMessages to generateAutomatedResponse
- chain generateAutomatedResponse and pinOriginal to retreiveMessage rest action