Move REGEX_CUTOFF to outs.py (commands)

This commit is contained in:
jesopo 2019-02-09 17:52:51 +00:00
parent 1ff2a00c48
commit 90618e883b
2 changed files with 3 additions and 1 deletions

View file

@ -5,7 +5,6 @@ from . import outs
COMMAND_METHOD = "command-method"
COMMAND_METHODS = ["PRIVMSG", "NOTICE"]
REGEX_CUTOFF = re.compile(r"^.{1,%d}(?:\s|$)" % OUT_CUTOFF)
REGEX_ARG_NUMBER = re.compile(r"\$(\d+)")
def _command_method_validate(s):

View file

@ -1,6 +1,9 @@
import re
from src import utils
OUT_CUTOFF = 400
REGEX_CUTOFF = re.compile(r"^.{1,%d}(?:\s|$)" % OUT_CUTOFF)
STR_MORE = "%s (more...)" % utils.consts.RESET
STR_CONTINUED = "(...continued) "