scroll

- irc bot to play ascii art
git clone git://git.acid.vegas/scroll.git
Log | Files | Refs | Archive | README | LICENSE

commit be9cfd8aece404898bf34ada04659067d6e9f623
parent 22940522bac177e6527235dd990abba44f908f9b
Author: acidvegas <acid.vegas@acid.vegas>
Date: Thu, 29 Jun 2023 21:45:12 -0400

Forgot to define dir

Diffstat:
Mscroll.py | 2+-

1 file changed, 1 insertion(+), 1 deletion(-)

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