diff --git a/README.md b/README.md index 03af9ac..a72f6f8 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,21 @@ Next, run the following commands: If you followed the steps above the cron job should run every 30 minutes at 25 and 55 minutes past the hour. Tail the log file to ensure it's working correctly. +The cron.sh script will parse the log.txt file to get the next index to post from. + +## Post a Specific Image +Make sure settings_behavior["master_list"] is set to "-" to take input from stdin +``` +echo './path/to/image.png' | ./run +``` + +## Post a Random Image From The Masterlist +Make sure settings_behavior["master_list"] is set to "-" to take input from stdin +``` +shuf -n 1 master_file.txt | ./run +``` +This is the method that is used for [MiraiNikkiBot](https://yandere.cc/users/MiraiNikkiBot) and the various framebots I host at [GNU/Yandere](https://yandere.cc) + ## Quickly Create Configuration Files Configuration files for Yandere Lewd Bot are just python files. Because of this we can easily create multiple configurations by importing the main configuration file, and overriding the values we need. This is useful for creating holiday and debug configurations without needing to create a new configuration file from scratch. ```