Fix chunking bug: AttributeError: 'str' object has no attribute 'author'

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-08-20 21:18:24 +03:00
parent 4a6937ae0d
commit 4202e6c4ae
Signed by untrusted user who does not match committer: ari
GPG key ID: A50D5B4B599AF8A2

View file

@ -142,9 +142,9 @@ class BotCommandsParser:
if chunk_idx > CONFIG["chunk-limit"]:
log("Too many chunks being sent, stopping")
await self.bot.cchannel.send(
m("Message chunk count exceeded, message too long!", message)
f"***Message chunk count exceeded ({CONFIG['chunk-limit']}), message too long!***"
)
break
return
await self.bot.cchannel.send(f"{chunk}\n")