Automated pull function using Discord Bot NodeJS

Hello everyone,

I have created a discord bot and wanted to know if it’s possible if I can create a function that when I type !update in discord in a specific channel, it checks if any changes where made to my repository and then automatically do the “git pull” command on one of my linux servers?

Thank you

Ahmed

Yes, it is possible to do what you’re describing. It’s a lot more complicated than only GitHub API calls though, so we’re not going to be able to help you design this functionality. You may want to try posting in Project Development Help and Advice.

I hope that helps!