1
mirror of git://git.acid.vegas/scroll.git synced 2024-11-07 08:46:45 +00:00

ascii stopper improved

This commit is contained in:
Dionysus 2023-06-02 20:26:47 -04:00
parent 4048e3aa08
commit f5e769ece1
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -199,7 +199,8 @@ 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 msg == '.ascii stop':
if self.playing:
if chan in self.loops:
self.loops[chan].cancel()
elif time.time() - self.last < throttle.flood: