Updated GPL header and comments
This commit is contained in:
parent
037e133759
commit
2b0a6befe6
@ -1,6 +1,6 @@
|
|||||||
#! /usr/bin/env python3
|
#! /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>
|
# Copyright (C) 2022 Anon <yanderefedi@proton.me>
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# 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 = {
|
settings_behavior = {
|
||||||
"max_size": 15*1024*1024,
|
"max_size": 15*1024*1024,
|
||||||
"visibility": "unlisted",
|
"visibility": "unlisted",
|
||||||
|
@ -1,5 +1,21 @@
|
|||||||
#! /usr/bin/env python3
|
#! /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:
|
# TODO:
|
||||||
# Update to enable multiple file downloads
|
# Update to enable multiple file downloads
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#! /usr/bin/env python3
|
#! /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>
|
# Copyright (C) 2022 Anon <yanderefedi@proton.me>
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
@ -24,7 +24,7 @@ import datetime
|
|||||||
import contextlib
|
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
|
# 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).
|
# Bot specific changes should be made here (if they are minor enough).
|
||||||
# This will be instantiated from the main() function
|
# This will be instantiated from the main() function
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#! /usr/bin/env python3
|
#! /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>
|
# Copyright (C) 2022 Anon <yanderefedi@proton.me>
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# 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) )
|
date_next_selection.strftime(self.settings_time["long_date_format"]), next_selection_seconds) )
|
||||||
print("[ {} Selected during session | {} Failed ]\n".format(
|
print("[ {} Selected during session | {} Failed ]\n".format(
|
||||||
self.currentSessionCount, self.failed_uploads) )
|
self.currentSessionCount, self.failed_uploads) )
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Returns a list of media paths (without the hashes)
|
# Returns a list of media paths (without the hashes)
|
||||||
@ -367,8 +366,7 @@ class YandereBot:
|
|||||||
|
|
||||||
# End Conditions:
|
# End Conditions:
|
||||||
# 1. User presses Ctrl+C
|
# 1. User presses Ctrl+C
|
||||||
# 2. There is nothing left in the picture list to select from
|
# 2. settings_behavior["uploads_per_post"] is less than one for some reason
|
||||||
# 3. settings_behavior["uploads_per_post"] is less than one for some reason
|
|
||||||
def can_post(self):
|
def can_post(self):
|
||||||
return not self.eventSleep.is_set() and self.settings_behavior["uploads_per_post"] > 0
|
return not self.eventSleep.is_set() and self.settings_behavior["uploads_per_post"] > 0
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user