1
mirror of git://git.acid.vegas/scroll.git synced 2024-11-07 08:46:45 +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: if ascii.getcode() == 200:
ascii = ascii.readlines() ascii = ascii.readlines()
if len(ascii) > int(self.settings['lines']) and chan != '#scroll': 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: else:
await self.action(chan, 'the ascii gods have chosen... ' + color(name, cyan)) await self.action(chan, 'the ascii gods have chosen... ' + color(name, cyan))
for line in ascii: for line in ascii: