scroll

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

commit f5e769ece12b1aec117d07fcba41de61d74f8364
parent 4048e3aa080a4d2cff32900322b028c681302109
Author: acidvegas <acid.vegas@acid.vegas>
Date: Fri, 2 Jun 2023 20:26:47 -0400

ascii stopper improved

Diffstat:
Mscroll.py | 7++++---

1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/scroll.py b/scroll.py
@@ -199,9 +199,10 @@ class Bot():
 						if msg == '@scroll':
 							await self.sendmsg(chan, bold + 'Scroll IRC Art Bot - Developed by acidvegas in Python - https://git.acid.vegas/scroll')
 						elif args[0] == '.ascii':
-							if msg == '.ascii stop' and self.playing:
-								if chan in self.loops:
-									self.loops[chan].cancel()
+							if msg == '.ascii stop':
+								if self.playing:
+									if chan in self.loops:
+										self.loops[chan].cancel()
 							elif time.time() - self.last < throttle.flood:
 								if not self.slow:
 									if not self.playing: