scroll- irc bot to play ascii art |
git clone git://git.acid.vegas/scroll.git |
Log | Files | Refs | Archive | README | LICENSE |
commit a67d02291e0e00912fd9c29ab4ac813f26e66089
parent d714469d989f76f4bcdf6fd4e15ca247a557c603 Author: acidvegas <acid.vegas@acid.vegas> Date: Mon, 5 Jun 2023 14:26:33 -0400 Fixed incorrect path when playing art from the root directory Diffstat:
|
1 file changed, 2 insertions(+), 1 deletion(-) |
diff --git a/scroll.py b/scroll.py @@ -253,8 +253,9 @@ class Bot(): query = args[1] results = [dir+'/'+ascii for dir in self.db for ascii in self.db[dir] if query == ascii] if results: + results = results[0].replace('root/','') self.playing = True - self.loops[chan] = asyncio.create_task(self.play(chan, results[0])) + self.loops[chan] = asyncio.create_task(self.play(chan, results)) else: await self.irc_error(chan, 'no results found', query) except (UnicodeDecodeError, UnicodeEncodeError): |