I am working on customizing a GroupMe Bot I forked on GitHub and have run into some trouble. This is my first project working on bots and with Heroku. I want the bot to update a counter in a JSON file every time it recognizes a keyword in a groupchat. Right now I have it posting the current counter(which it pulls from a JSON file) every time it recognizes the keyword, but it does not update the counter in the JSON file. The bot is currently being run on Heroku and the code is deployed through GitHub.
The code that writes to the JSON file works on a simpler version on my local machine and I essentially just copied that part over to the code on GitHub so I do not think that is the problem. Could the problem be that when the app runs it updates the file and does not commit the changes to github or something like that?
Thank you.
via Aaron Rotem
No comments:
Post a Comment