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
1 changed files with 4 additions and 3 deletions

View File

@ -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: