moved console.log into the a different function, and fixed the bug

This fixes a stupid bug that I introduced without thinking. Now, there is a console.log to track what webhook you are on, before running the curl command.