lots of small stuff which hopefully helps
This commit is contained in:
parent
719685ce9c
commit
d1dc51abea
|
@ -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.
|
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
|
## 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
|
* 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
|
||||||
|
|
|
@ -48,7 +48,7 @@ class RetweetBot(object):
|
||||||
if logpath:
|
if logpath:
|
||||||
self.logpath = logpath
|
self.logpath = logpath
|
||||||
else:
|
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
|
print "Path of logfile: " + self.logpath
|
||||||
|
|
||||||
def get_api_keys(self):
|
def get_api_keys(self):
|
||||||
|
|
|
@ -21,6 +21,7 @@ access_token_secret = "youraccesstokensecret"
|
||||||
# goodlists are one regex per line.
|
# goodlists are one regex per line.
|
||||||
# badlists are one badword per line.
|
# badlists are one badword per line.
|
||||||
# a message musst match at least one regex in goodlist and contain none of the badwords.
|
# 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'
|
# goodlist_path = 'goodlists'
|
||||||
# blacklist_path = 'blacklists'
|
# blacklist_path = 'blacklists'
|
||||||
|
|
Loading…
Reference in a new issue