scroll- irc bot to play ascii art |
git clone git://git.acid.vegas/scroll.git |
Log | Files | Refs | Archive | README | LICENSE |
commit 8314e8a1a7c01a2cf41a0aea329c3400d7d4358f
parent 4c903645c4112b4d8fdef7fa2d88c45cbd8a0ef3 Author: acidvegas <acid.vegas@acid.vegas> Date: Fri, 2 Jun 2023 15:15:55 -0400 Fixed handling missing files Diffstat:
|
1 file changed, 2 insertions(+), 1 deletion(-) |
diff --git a/scroll.py b/scroll.py @@ -252,8 +252,9 @@ class Bot(): self.playing = True self.loops[chan] = asyncio.create_task(self.play(chan, random.choice(self.db))) else: - ascii = [dir+'/'+option for dir in self.db if option in self.db[dir]][0] + ascii = [dir+'/'+option for dir in self.db if option in self.db[dir]] if ascii: + ascii = ascii[0] if ascii.startswith('root/'): ascii = ascii.split('/')[1] self.playing = True |