diff --git a/nonebot-plugin-random/utils.py b/nonebot-plugin-random/utils.py index 6e0b10e..caaa04e 100644 --- a/nonebot-plugin-random/utils.py +++ b/nonebot-plugin-random/utils.py @@ -4,7 +4,7 @@ def is_image_file(path:Path) -> bool: return path.suffix in [".gif",".png",".jpg",".jpeg"] def is_record_file(path:Path) -> bool: - return path.suffix in [".mp3",".wav",".ogg"] + return path.suffix in [".mp3",".wav",".ogg",".flac"] def is_video_file(path:Path) -> bool: return path.suffix in [".mp4",".avi",".flv",".wmv",".mov",".mpg",".mpeg"] @@ -21,4 +21,4 @@ def is_file(type:str,path:Path) -> bool: def replace_message(msg:str,path:Path) -> str: return msg.replace("{filename}",path.name) \ - .replace("{filestem}",path.stem) \ No newline at end of file + .replace("{filestem}",path.stem)