Removed unused variables
This commit is contained in:
parent
f9e26ed9f5
commit
3431f33e80
@ -186,7 +186,7 @@ def main():
|
|||||||
arguments = parser.parse_args()
|
arguments = parser.parse_args()
|
||||||
|
|
||||||
# Redirect stdout when the bot first initializes if the bot is not going to run normally
|
# Redirect stdout when the bot first initializes if the bot is not going to run normally
|
||||||
redirect_stdout = None if arguments.output_hashes or arguments.help else sys.stdout
|
redirect_stdout = None if arguments.help else sys.stdout
|
||||||
|
|
||||||
# Yandere Lewd Bot
|
# Yandere Lewd Bot
|
||||||
yandere = None
|
yandere = None
|
||||||
@ -201,7 +201,7 @@ def main():
|
|||||||
raise FailedToLoadCfg
|
raise FailedToLoadCfg
|
||||||
|
|
||||||
# Flag if the bot is running in debug mode
|
# Flag if the bot is running in debug mode
|
||||||
debug_mode = (arguments.dry_run or arguments.debug or arguments.output_hashes or arguments.help)
|
debug_mode = (arguments.dry_run or arguments.debug or arguments.help)
|
||||||
|
|
||||||
with contextlib.redirect_stdout(redirect_stdout):
|
with contextlib.redirect_stdout(redirect_stdout):
|
||||||
prime_bot = not arguments.help
|
prime_bot = not arguments.help
|
||||||
|
Reference in New Issue
Block a user