Removed unused switch that could cause a crash.

This commit is contained in:
Anon 2022-09-01 00:06:24 -07:00
parent def0d40fa7
commit f9e26ed9f5

View File

@ -67,10 +67,6 @@ class YandereBot(yandere_bot.YandereBot):
"DATE", date_fmt, current_time.strftime(date_fmt)
))
def dump_pictures(self):
for ele in self.listPictures:
print(ele.get_full_string())
def set_delay_d(self, d):
try:
t = datetime.datetime.strptime(d, self.settings_time["date_format"])
@ -185,7 +181,6 @@ def main():
parser.add_argument("-d", "--date", help="Wait for date before posting first image", default=None)
parser.add_argument("-i", "--index", help="Start at index (only matters if profile select is set to sequential)", default=0)
parser.add_argument("-c", "--config", help="Set custom config file (Default: {})".format(default_cfg), default=default_cfg)
parser.add_argument("-o", "--output-hashes", help="Output list of hashes", action="store_true")
parser.add_argument("-h", "--help", help="Show this help message and exit", action="store_true")
parser.add_argument("remainder", help=argparse.SUPPRESS, nargs=argparse.REMAINDER)
arguments = parser.parse_args()
@ -229,11 +224,6 @@ def main():
print()
return 0
# Output all of the images in the bot's picture list
if arguments.output_hashes:
yandere.dump_pictures()
return 0
# Setup exit calls
# Must be done after we declare our bot(s), otherwise this will be called if quitting on decrypting settings )
def yandere_quit(signo, _frame):