This commit is contained in:
Nexus 2023-05-04 14:22:54 +01:00
parent d3820badf5
commit 908d2ed71a
Signed by: nex
GPG key ID: 0FA334385D0B689F
7 changed files with 8 additions and 2 deletions

BIN
assets/smeg/smeg-1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

BIN
assets/smeg/smeg-2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
assets/smeg/smeg-3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

BIN
assets/smeg/smeg-4.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
assets/smeg/smeg-5.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View file

Before

Width:  |  Height:  |  Size: 626 KiB

After

Width:  |  Height:  |  Size: 626 KiB

View file

@ -342,8 +342,14 @@ class Events(commands.Cog):
smeg_regex = r"[s5]+(m)+[e3]+[g9]+"
smeg_sub = r"(-_.\s)+"
if re.match(smeg_regex, re.sub(smeg_sub, "", message.content.lower())):
file = discord.File(Path.cwd() / "assets" / "wordart.png", filename="smeg.png")
await message.reply(file=file)
directory = Path.cwd() / "assets" / "smeg"
if directory:
choice = random.choice(list(directory.iterdir()))
file = discord.File(
choice,
filename="%s.%s" % (os.urandom(32).hex(), choice.suffix)
)
await message.reply(file=file)
if message.reference is not None and message.reference.cached_message is not None:
if message.content.lower().strip() in ("what", "what?", "huh", "huh?", "?"):
if f"{message.author.mention} said '" * 3 in message.reference.cached_message.content: