Retry executes a function up to a specified number of attempts with a delay between attempts.
Returns on the first success, or returns the last error encountered.
SplitMsg splits a message into parts that are under lengthLimit characters.
Splits by newlines or spaces if possible.
Returns slice with at least one element.