TJ-Bot icon indicating copy to clipboard operation
TJ-Bot copied to clipboard

refactor HelpThreadCreatedListener

Open ankitsmt211 opened this issue 1 year ago • 0 comments

Resolving error: image

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

ankitsmt211 avatar Mar 26 '24 11:03 ankitsmt211