Move REGEX_CUTOFF to outs.py (commands)
This commit is contained in:
parent
1ff2a00c48
commit
90618e883b
2 changed files with 3 additions and 1 deletions
|
@ -5,7 +5,6 @@ from . import outs
|
||||||
COMMAND_METHOD = "command-method"
|
COMMAND_METHOD = "command-method"
|
||||||
COMMAND_METHODS = ["PRIVMSG", "NOTICE"]
|
COMMAND_METHODS = ["PRIVMSG", "NOTICE"]
|
||||||
|
|
||||||
REGEX_CUTOFF = re.compile(r"^.{1,%d}(?:\s|$)" % OUT_CUTOFF)
|
|
||||||
REGEX_ARG_NUMBER = re.compile(r"\$(\d+)")
|
REGEX_ARG_NUMBER = re.compile(r"\$(\d+)")
|
||||||
|
|
||||||
def _command_method_validate(s):
|
def _command_method_validate(s):
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
|
import re
|
||||||
from src import utils
|
from src import utils
|
||||||
|
|
||||||
OUT_CUTOFF = 400
|
OUT_CUTOFF = 400
|
||||||
|
REGEX_CUTOFF = re.compile(r"^.{1,%d}(?:\s|$)" % OUT_CUTOFF)
|
||||||
|
|
||||||
STR_MORE = "%s (more...)" % utils.consts.RESET
|
STR_MORE = "%s (more...)" % utils.consts.RESET
|
||||||
STR_CONTINUED = "(...continued) "
|
STR_CONTINUED = "(...continued) "
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue