Removed unused switch that could cause a crash.
This commit is contained in:
parent
def0d40fa7
commit
f9e26ed9f5
10
src/main.py
10
src/main.py
@ -67,10 +67,6 @@ class YandereBot(yandere_bot.YandereBot):
|
|||||||
"DATE", date_fmt, current_time.strftime(date_fmt)
|
"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):
|
def set_delay_d(self, d):
|
||||||
try:
|
try:
|
||||||
t = datetime.datetime.strptime(d, self.settings_time["date_format"])
|
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("-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("-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("-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("-h", "--help", help="Show this help message and exit", action="store_true")
|
||||||
parser.add_argument("remainder", help=argparse.SUPPRESS, nargs=argparse.REMAINDER)
|
parser.add_argument("remainder", help=argparse.SUPPRESS, nargs=argparse.REMAINDER)
|
||||||
arguments = parser.parse_args()
|
arguments = parser.parse_args()
|
||||||
@ -229,11 +224,6 @@ def main():
|
|||||||
print()
|
print()
|
||||||
return 0
|
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
|
# Setup exit calls
|
||||||
# Must be done after we declare our bot(s), otherwise this will be called if quitting on decrypting settings )
|
# Must be done after we declare our bot(s), otherwise this will be called if quitting on decrypting settings )
|
||||||
def yandere_quit(signo, _frame):
|
def yandere_quit(signo, _frame):
|
||||||
|
Reference in New Issue
Block a user