This commit is contained in:
Nexus 2023-11-18 19:11:56 +00:00
parent 92eaf5f2c0
commit c18349dffe
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -491,12 +491,6 @@ class Events(commands.Cog):
break
else:
continue
elif data.get("file"):
# Check the file exists
if not isinstance(data["file"], discord.File):
data["file"] = discord.File(data["file"])
if not data["file"].fp.exists():
continue
if meta.get("sub") is not None and isinstance(meta["sub"], dict):
content = re.sub(meta["sub"]["pattern"], meta["sub"]["with"], message.content)