Files
HeXi/plugin_template/nonebot_plugin_template/utils/__init__.py
T

5 lines
147 B
Python
Raw Normal View History

"""纯工具:无副作用、尽量不 import nonebot,可单测。"""
def slugify(text: str) -> str:
return text.lower().replace(" ", "-")