Forgot to define dir

This commit is contained in:
Dionysus 2023-06-29 21:45:12 -04:00
parent 22940522ba
commit be9cfd8aec
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
1 changed files with 1 additions and 1 deletions

View File

@ -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])}'