Updated to remove yanlib.py import header
This commit is contained in:
parent
740221df94
commit
70a35cf47b
@ -19,7 +19,6 @@
|
|||||||
import sys
|
import sys
|
||||||
import argparse
|
import argparse
|
||||||
import signal
|
import signal
|
||||||
import yanlib
|
|
||||||
import yandereBot
|
import yandereBot
|
||||||
import datetime
|
import datetime
|
||||||
import contextlib
|
import contextlib
|
||||||
@ -89,7 +88,7 @@ class YandereBot(yandereBot.YandereBot):
|
|||||||
hour=t.hour, minute=t.minute, second=t.second, microsecond=t.microsecond
|
hour=t.hour, minute=t.minute, second=t.second, microsecond=t.microsecond
|
||||||
)
|
)
|
||||||
if self.dateNextSelection < self.dateSelection and add_24:
|
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:
|
except Exception:
|
||||||
print("Invalid time format: {}\n\nCorrect date/time format examples:".format(h))
|
print("Invalid time format: {}\n\nCorrect date/time format examples:".format(h))
|
||||||
self.print_date_time_example()
|
self.print_date_time_example()
|
||||||
@ -106,7 +105,7 @@ class YandereBot(yandereBot.YandereBot):
|
|||||||
# Check for potential misconfigurations by the user
|
# Check for potential misconfigurations by the user
|
||||||
def pass_sanity_test(self):
|
def pass_sanity_test(self):
|
||||||
# Calculate pre-timer value
|
# 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
|
# Possible misconfigurations that will prompt the user to continue
|
||||||
pretimer_less_than_zero = seconds_until_next_pos < 0
|
pretimer_less_than_zero = seconds_until_next_pos < 0
|
||||||
|
Reference in New Issue
Block a user