parent
ed0981cbdb
commit
be2b210df4
|
@ -1444,8 +1444,6 @@ TROLLTITLES = [
|
|||
"Hey jannies can you please ban @{username}",
|
||||
]
|
||||
|
||||
DISABLE_POLL_COMMAND = "disablepoll"
|
||||
|
||||
NOTIFIED_USERS = {
|
||||
'aevan': AEVANN_ID,
|
||||
'avean': AEVANN_ID,
|
||||
|
|
|
@ -178,7 +178,6 @@ commands = {
|
|||
"factcheck": FACTCHECK_REPLIES,
|
||||
"8ball": EIGHTBALL_REPLIES,
|
||||
"roll": range(1, 9999),
|
||||
DISABLE_POLL_COMMAND: None,
|
||||
}
|
||||
|
||||
command_regex = re.compile(f"(\s|\n|^)#({'|'.join(commands.keys())})", flags=re.A|re.I)
|
||||
|
|
|
@ -497,9 +497,6 @@ def validate_css(css):
|
|||
return True, ""
|
||||
|
||||
def sanitize_poll_options(v:User, body:str, allow_bets:bool) -> tuple[str, List[Any], List[Any], List[Any]]:
|
||||
if FEATURES['MARKUP_COMMANDS'] and body.startswith(f"#{DISABLE_POLL_COMMAND}"):
|
||||
return (body, [], [], [])
|
||||
|
||||
def sanitize_poll_type(body:str, re:re.Pattern) -> tuple[str, List[str]]:
|
||||
opts = []
|
||||
for i in list(re.finditer(body))[:POLL_MAX_OPTIONS]:
|
||||
|
|
|
@ -127,11 +127,6 @@ Text 2
|
|||
<td>#roll</td>
|
||||
<td>A number 1–9999.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Disable Poll Formatting</td>
|
||||
<td>#disablepoll</td>
|
||||
<td>Disables poll options (useful for large code blocks that have things like &&).</td>
|
||||
</tr>
|
||||
{%- endif %}
|
||||
<tr>
|
||||
<td>
|
||||
|
|
Loading…
Reference in New Issue