1
mirror of git://git.acid.vegas/scroll.git synced 2024-11-21 23:56:39 +00:00

Show how many lines an ASCII that is too big for outside of #scroll is

This commit is contained in:
Dionysus 2023-06-25 06:00:04 -04:00
parent f46c80ecfa
commit c23b903399
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -152,7 +152,7 @@ class Bot():
if ascii.getcode() == 200:
ascii = ascii.readlines()
if len(ascii) > int(self.settings['lines']) and chan != '#scroll':
await self.irc_error(chan, 'file is too big', 'take it to #scroll')
await self.irc_error(chan, 'file is too big', 'take those {len(ascii):,} lines to #scroll')
else:
await self.action(chan, 'the ascii gods have chosen... ' + color(name, cyan))
for line in ascii: