Updated module name to be consistent with other bots

This commit is contained in:
Anon 2022-08-31 22:20:17 -07:00
parent 185cece780
commit 0e56063c4a
2 changed files with 8 additions and 8 deletions

View File

@ -19,16 +19,16 @@
import sys
import argparse
import signal
import yandereBot
import yandere_bot
import datetime
import contextlib
# A class that inherits from either YandereBot from yandereBot module
# A class that inherits from YandereBot from the yandere_bot module
# 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).
# This will be instantiated from the main() function
class YandereBot(yandereBot.YandereBot):
class YandereBot(yandere_bot.YandereBot):
# The below settings are required from the configuration module
settings_time = None
settings_reminder = None
@ -84,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 = yandereBot.time_add_seconds(self.dateNextSelection, 60 * 60 * 24)
self.dateNextSelection = yandere_bot.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()
@ -101,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 = yandereBot.time_diff_seconds(self.dateNextSelection, self.dateSelection)
seconds_until_next_pos = yandere_bot.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
@ -250,9 +250,9 @@ if __name__ == "__main__":
sys.exit(7)
# Exceptions raised from the bot
except yandereBot.Debug:
except yandere_bot.Debug:
sys.exit(6)
except yandereBot.BadCfgFile:
except yandere_bot.BadCfgFile:
sys.exit(4)
except yandereBot.FailedLogin:
except yandere_bot.FailedLogin:
sys.exit(2)