This commit is contained in:
@ -15,7 +15,7 @@ from konabot.plugins.markdown.core import MarkDownCore
|
|||||||
|
|
||||||
def is_markdown_mentioned(evt: BaseEvent, msg: UniMsg) -> bool:
|
def is_markdown_mentioned(evt: BaseEvent, msg: UniMsg) -> bool:
|
||||||
txt = msg.extract_plain_text()
|
txt = msg.extract_plain_text()
|
||||||
if "markdown" not in txt[:10] or "md" not in txt[:3]:
|
if "markdown" not in txt[:10] and "md" not in txt[:3]:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user