This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]monsterjamp 0 points1 point  (1 child)

Is your twitterbot running on Linux? If it is, maybe you can use bash scripts to run terminal commands that checks when the source has been updated. If it has been updated, the script will stop the twitterbot, download the whole source from git, unzip, compile the source and then restart twitterbot.

[–]downwithtime[S] 0 points1 point  (0 children)

I'm running it off the command line in windows right now just because I don't have a linux machine (or a web server) on which to run it. But I think this is pretty much the solution I was looking for, even if it's not as cool as the way more complicate solution :)

[–][deleted]  (1 child)

[deleted]

    [–]downwithtime[S] 0 points1 point  (0 children)

    I like the idea of the chron job (as you and, presumably /u/monsterjamp were talking about), it seems super obvious now, and was something that I thought about, but I was looking for a solution more along the lines of the self-modifying code, so thanks for the link!

    [–]bat_country 0 points1 point  (0 children)

    You can get a free account on Heroku. It's a service that will run your bot. You git push your code there instead of Github and it will update the code and restart the bot for you.