forked from ChomeNS/chomens-bot-java
slkeep
This commit is contained in:
parent
62114b39d9
commit
75599522fd
1 changed files with 2 additions and 1 deletions
|
@ -30,7 +30,7 @@ import java.util.regex.Matcher;
|
|||
import java.util.regex.Pattern;
|
||||
|
||||
public class ChatPlugin extends Bot.Listener {
|
||||
public static final Pattern CHAT_SPLIT_PATTERN = Pattern.compile("\\G\\s*([^\\r\\n]{1,254}(?=\\s|$)|[^\\r\\n]{254})"); // thanks HBot for the regex <3
|
||||
public final Pattern CHAT_SPLIT_PATTERN;
|
||||
public static final Pattern COLOR_CODE_PATTERN = Pattern.compile("(&[a-f0-9rlonmk])", Pattern.MULTILINE);
|
||||
public static final Pattern COLOR_CODE_END_PATTERN = Pattern.compile("^.*&[a-f0-9rlonmk]$", Pattern.MULTILINE);
|
||||
|
||||
|
@ -46,6 +46,7 @@ public class ChatPlugin extends Bot.Listener {
|
|||
|
||||
public ChatPlugin (Bot bot) {
|
||||
this.bot = bot;
|
||||
this.CHAT_SPLIT_PATTERN = Pattern.compile("\\G\\s*([^\\r\\n]{1," + (bot.options.creayun ? 126 : 254) + "}(?=\\s|$)|[^\\r\\n]{254})"); // thanks HBot for the regex <3
|
||||
|
||||
queueDelay = bot.options.chatQueueDelay;
|
||||
|
||||
|
|
Loading…
Reference in a new issue