From be9cfd8aece404898bf34ada04659067d6e9f623 Mon Sep 17 00:00:00 2001 From: acidvegas Date: Thu, 29 Jun 2023 21:45:12 -0400 Subject: [PATCH] Forgot to define dir --- scroll.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scroll.py b/scroll.py index bbf0519..8afd3f8 100644 --- a/scroll.py +++ b/scroll.py @@ -279,7 +279,7 @@ class Bot(): dir = args[2] else: random.seed(random.randrange(sys.maxsize)) - random.choice([item for item in self.db if item not in self.settings['ignore']]) + dir = random.choice([item for item in self.db if item not in self.settings['ignore']]) if dir in self.db: random.seed(random.randrange(sys.maxsize)) ascii = f'{dir}/{random.choice(self.db[dir])}'