Updated to accept !solved & !helped and /solved or /helped

This commit is contained in:
ScottishCrafter_
2026-02-22 16:41:55 +00:00
parent 7b66363e86
commit e684c68229

View File

@@ -14,8 +14,8 @@ from . import config, database, level, reply
USER_AGENT = 'PointsBot (by u/GlipGlorp7)' USER_AGENT = 'PointsBot (by u/GlipGlorp7)'
# The pattern that determines whether a post is marked as solved # The pattern that determines whether a post is marked as solved
SOLVED_PATTERN = re.compile('![Hh]elped') SOLVED_PATTERN = re.compile('!([Hh]elped|[Ss]olved)')
MOD_SOLVED_PATTERN = re.compile('/[Hh]elped') MOD_SOLVED_PATTERN = re.compile('/([Hh]elped|[Ss]olved)')
MOD_REMOVE_PATTERN = re.compile('/[Rr]emove[Pp]oint') MOD_REMOVE_PATTERN = re.compile('/[Rr]emove[Pp]oint')