Removed yanlib.py as dependency

This commit is contained in:
Anon 2022-08-27 01:42:56 -07:00
parent e0581a21fe
commit e98d96d85b

View File

@ -19,7 +19,6 @@
import sys
import argparse
import signal
import yanlib
import yandereBot
import datetime
import contextlib
@ -85,7 +84,7 @@ class YandereBot(yandereBot.YandereBot):
hour=t.hour, minute=t.minute, second=t.second, microsecond=t.microsecond
)
if self.dateNextSelection < self.dateSelection and add_24:
self.dateNextSelection = yanlib.time_add_seconds(self.dateNextSelection, 60 * 60 * 24)
self.dateNextSelection = yandereBot.time_add_seconds(self.dateNextSelection, 60 * 60 * 24)
except Exception:
print("Invalid time format: {}\n\nCorrect date/time format examples:".format(h))
self.print_date_time_example()
@ -102,7 +101,7 @@ class YandereBot(yandereBot.YandereBot):
# Check for potential misconfigurations by the user
def pass_sanity_test(self):
# Calculate pre-timer value
seconds_until_next_pos = yanlib.time_diff_seconds(self.dateNextSelection, self.dateSelection)
seconds_until_next_pos = yandereBot.time_diff_seconds(self.dateNextSelection, self.dateSelection)
# Possible misconfigurations that will prompt the user to continue
pretimer_less_than_zero = seconds_until_next_pos < 0