From 8c0758174db232b75715cbb5ef5285848d2954cf Mon Sep 17 00:00:00 2001 From: Homer S Date: Sun, 28 Jan 2018 18:05:46 +0000 Subject: [PATCH] Update README.md with warning not to flood with faulty toots and how to unlock the script. --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 08d106b..e25cae2 100644 --- a/README.md +++ b/README.md @@ -12,4 +12,20 @@ Above this you need a twitter developer account to receive consumer and access k ## Usage After having filled in every information into the settings.json file you could use e.g. ```crontab -e``` on unixoid systems from shell and add a line like ```*/15 * * * * python3 /home/username/mastobot/mastobot.py >> /home/username/mastobot.log``` which lets the script be triggered every 15 minutes. -By default the script will be limited to 25 tweets per account for this period which should definitely be enough for a human account I think. \ No newline at end of file +By default the script will be limited to 25 tweets per account for this period which should definitely be enough for a human account I think. + +## Warning +Before you start flooding your Mastodon instance accidently with hundreds of repeating posts, please test your adjustments by hitting +```python3 mastodon.py``` and have a look on the output. If the script breaks at any time the 'last_id'-parameters won't be updated and next time it will post exactly the same statuses again and again! +So make sure that the script run successfully at least once before you fire this gun! + +## Unlock script +By default the script has commented out the commands to upload anything to your Mastodon instance (see 'Warning' above). +To unlock it just uncomment +``` +# masto_photo = mastodon.media_post(tmp_path) +# masto_media.append(masto_photo) +... +# mastodon.status_post(mastodon_text, None, masto_media, True) +``` +Please again start the script once by hand from commandline and _then_ start your cronjob if you wish to. \ No newline at end of file