Updated GPL header and comments
This commit is contained in:
parent
037e133759
commit
2b0a6befe6
@ -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 <yanderefedi@proton.me>
|
||||
#
|
||||
# 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",
|
||||
|
@ -1,5 +1,21 @@
|
||||
#! /usr/bin/env python3
|
||||
|
||||
# Danbooru Bot, an image posting bot for Pleroma
|
||||
# Copyright (C) 2022 Anon <yanderefedi@proton.me>
|
||||
#
|
||||
# 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 <https://www.gnu.org/licenses/>.
|
||||
|
||||
# TODO:
|
||||
# Update to enable multiple file downloads
|
||||
|
||||
|
@ -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 <yanderefedi@proton.me>
|
||||
#
|
||||
# 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
|
||||
|
@ -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 <yanderefedi@proton.me>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
@ -139,7 +139,6 @@ class YandereBot:
|
||||
self.currentSessionCount, self.failed_uploads) )
|
||||
|
||||
|
||||
|
||||
# Returns a list of media paths (without the hashes)
|
||||
def download_media(self, picked_profile):
|
||||
try:
|
||||
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user