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:
parent
4a6937ae0d
commit
4202e6c4ae
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue