diff --git a/default/cfg.py b/default/cfg.py index 8439913..3678c4e 100644 --- a/default/cfg.py +++ b/default/cfg.py @@ -1,6 +1,6 @@ #! /usr/bin/env python3 -# Yandere Lewd Bot, an image posting bot for Pleroma +# Danbooru Bot, an image posting bot for Pleroma # Copyright (C) 2022 Anon # # This program is free software: you can redistribute it and/or modify @@ -61,7 +61,7 @@ settings_credentials = { } } -# Basic settings to configure Yandere Bot's behavior +# Basic settings to configure the bot's behavior settings_behavior = { "max_size": 15*1024*1024, "visibility": "unlisted", diff --git a/src/danbooru_backend.py b/src/danbooru_backend.py index 07f22a7..06daff9 100644 --- a/src/danbooru_backend.py +++ b/src/danbooru_backend.py @@ -1,5 +1,21 @@ #! /usr/bin/env python3 +# Danbooru Bot, an image posting bot for Pleroma +# Copyright (C) 2022 Anon +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + # TODO: # Update to enable multiple file downloads diff --git a/src/main.py b/src/main.py index 386a388..bd68c6b 100755 --- a/src/main.py +++ b/src/main.py @@ -1,6 +1,6 @@ #! /usr/bin/env python3 -# Yandere Lewd Bot, an image posting bot for Pleroma +# Danbooru Bot, an image posting bot for Pleroma # Copyright (C) 2022 Anon # # This program is free software: you can redistribute it and/or modify @@ -24,7 +24,7 @@ import datetime import contextlib -# A class that inherits from either YandereBot from yandere_bot module +# A class that inherits YandereBot from the yandere_bot module # This class is used to handle command line arguments gracefully, and extend functionality quickly # Bot specific changes should be made here (if they are minor enough). # This will be instantiated from the main() function diff --git a/src/yandere_bot.py b/src/yandere_bot.py index acaeae0..2f219d2 100644 --- a/src/yandere_bot.py +++ b/src/yandere_bot.py @@ -1,6 +1,6 @@ #! /usr/bin/env python3 -# Yandere Lewd Bot, an image posting bot for Pleroma +# Danbooru Bot, an image posting bot for Pleroma # Copyright (C) 2022 Anon # # This program is free software: you can redistribute it and/or modify @@ -137,7 +137,6 @@ class YandereBot: date_next_selection.strftime(self.settings_time["long_date_format"]), next_selection_seconds) ) print("[ {} Selected during session | {} Failed ]\n".format( self.currentSessionCount, self.failed_uploads) ) - # Returns a list of media paths (without the hashes) @@ -367,8 +366,7 @@ class YandereBot: # End Conditions: # 1. User presses Ctrl+C - # 2. There is nothing left in the picture list to select from - # 3. settings_behavior["uploads_per_post"] is less than one for some reason + # 2. settings_behavior["uploads_per_post"] is less than one for some reason def can_post(self): return not self.eventSleep.is_set() and self.settings_behavior["uploads_per_post"] > 0