Update announcer.py (#3514)

* Update announcer.py

* Update announcer.py
This commit is contained in:
trundleroo 2020-02-06 13:27:32 -04:00 committed by GitHub
parent 1fc4ece14c
commit 8d73838d80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,12 +70,12 @@ class Announcer:
failed.append(str(g.id))
await asyncio.sleep(0.5)
if failed:
msg = (
_("I could not announce to the following server: ")
if len(failed) == 1
else _("I could not announce to the following servers: ")
)
if failed:
msg += humanize_list(tuple(map(inline, failed)))
await self.ctx.bot.send_to_owners(msg)
self.active = False