mirror of
git://git.acid.vegas/scroll.git
synced 2024-11-22 08:06:39 +00:00
Show how many lines an ASCII that is too big for outside of #scroll is
This commit is contained in:
parent
f46c80ecfa
commit
c23b903399
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user