whatsapp-chatgpt
whatsapp-chatgpt copied to clipboard
code refactoring
added type to config
.
@navopw please can you merge and fix this?
Did the refactoring already:

Did the refactoring already:
![]()
@navopw It seems that the main branch doesn't match what I wrote, which has invalidated my efforts. Given the behavior of the authors, I don't think it's reasonable to continue any further. Good luck for your repository.
Hey @Zain-ul-din, sad to hear that. I didn't want to invalidate your efforts.
I was waiting for the changes from the review and quickly did it myself (5 minutes work). Really like to proceed asap.
I have adopted your changes almost exactly:
- Constants
- Config
What I haven't adopted:
- Whatsapp & messages functions in separate file
I also wish you the best!
@navopw
SS from master can you compare my index.ts with it?
Yours is different since you moved out the sendMessage logic (which I renamed to handleIncomingMessage).
Also like I stated:
What I haven't adopted:
Whatsapp & messages functions in separate file
The function handleIncomingMessage
is located in a distinct file within the pull request. Do you recall agreeing to merge the pull request and simply include config.ts? However, you did not follow through on your commitment.
Feel free to contribute another PR that does this. I will merge it.
Don't have the time to discuss such small details.
However it's a good idea to put it in a separate file.