1
mirror of git://git.acid.vegas/scroll.git synced 2024-11-22 08:06:39 +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,9 +199,10 @@ class Bot():
if msg == '@scroll': if msg == '@scroll':
await self.sendmsg(chan, bold + 'Scroll IRC Art Bot - Developed by acidvegas in Python - https://git.acid.vegas/scroll') await self.sendmsg(chan, bold + 'Scroll IRC Art Bot - Developed by acidvegas in Python - https://git.acid.vegas/scroll')
elif args[0] == '.ascii': elif args[0] == '.ascii':
if msg == '.ascii stop' and self.playing: if msg == '.ascii stop':
if chan in self.loops: if self.playing:
self.loops[chan].cancel() if chan in self.loops:
self.loops[chan].cancel()
elif time.time() - self.last < throttle.flood: elif time.time() - self.last < throttle.flood:
if not self.slow: if not self.slow:
if not self.playing: if not self.playing: