1
mirror of git://git.acid.vegas/scroll.git synced 2024-11-24 17:16:39 +00:00

Forgot to initialize an fstring

This commit is contained in:
Dionysus 2023-06-28 13:49:05 -04:00
parent e7fdc0fd15
commit 4040e4c2eb
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -161,7 +161,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 those {len(ascii):,} lines to #scroll') await self.irc_error(chan, 'file is too big', f'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:
@ -364,4 +364,4 @@ try:
import img2irc import img2irc
except ImportError: except ImportError:
raise SystemExit('missing required \'img2irc\' file (https://github.com/ircart/scroll/blob/master/img2irc.py)') raise SystemExit('missing required \'img2irc\' file (https://github.com/ircart/scroll/blob/master/img2irc.py)')
asyncio.run(Bot().connect()) asyncio.run(Bot().connect())