diff --git a/README.md b/README.md index 0605a7f..83b1f98 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,14 @@ There is also a blacklist, which you can use to automatically sort out malicious Note that atm the good- & blacklist are still outside of ticketfrei.cfg, in separate files. we will repare this soon. +To keep the bots running when you are logged out of the shell, you can use screen: + +```shell +sudo apt-get install screen +screen +python ticketfrei.py +``` + ## ideas * You can only use the twitter API if you have confirmed a phone number and sacrificed a penguin in a blood ritual. So we should build it in a way that it uses the twitter web GUI. It's difficult, but maybe it works. We had another twitter bot that worked similarly, years ago: https://github.com/b3yond/twitter-bot diff --git a/retweetbot.py b/retweetbot.py index 15a88eb..ef5cd75 100644 --- a/retweetbot.py +++ b/retweetbot.py @@ -48,7 +48,7 @@ class RetweetBot(object): if logpath: self.logpath = logpath else: - self.logpath = os.path.join("logs", "{%Y-%m-%d_%H:%M:%S}".format(datetime.datetime.now())) + self.logpath = os.path.join("logs", str(datetime.datetime.now())) print "Path of logfile: " + self.logpath def get_api_keys(self): diff --git a/ticketfrei.cfg.example b/ticketfrei.cfg.example index d6d3d2f..39d9cf6 100644 --- a/ticketfrei.cfg.example +++ b/ticketfrei.cfg.example @@ -21,6 +21,7 @@ access_token_secret = "youraccesstokensecret" # goodlists are one regex per line. # badlists are one badword per line. # a message musst match at least one regex in goodlist and contain none of the badwords. +# the variables mention the directory where the lists are located, not the filenames. # goodlist_path = 'goodlists' # blacklist_path = 'blacklists'