SOBotics / Botpy

A python framework for creating chatbots on the StackExchange network.
Other
5 stars 1 forks source link

Add warning for chat messages too long in docs #13

Open double-fault opened 5 years ago

double-fault commented 5 years ago

Add a warning to the docs to alert the user that long chat messages will automatically be ignored, without an error (that's what CE does).

tripleee commented 5 years ago

How long are messages which are too long?

double-fault commented 5 years ago

@tripleee Looks like it is 500 characters. Multi-line messages don't have a character limit, so you have to manually disable the length_check option.

jdd-software commented 5 years ago

Also Tuna is using 500, this is the code he used (instead of warning it split the message into multiple messages) https://github.com/SOBotics/chatexchange/blob/develop/src/main/java/org/sobotics/chatexchange/chat/Room.java#L262