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
Resolving error:![image](https://github.com/Together-Java/TJ-Bot/assets/61616007/b91c1fc3-38eb-42d1-a839-d19c5bb1d9e1)
more context for bugfix : discord conversation
replacing
onChannelCreate
withonMessageRecieved
forHelpThreadCreatedListenerFlow
this also ensures that we no longer needadditional delay
in creating automated response or gpt response. Not only makes code a bit less complex but also possibly resolves this error aroundunknown message