Smeggify
BIN
assets/smeg/smeg-1.jpg
Normal file
After Width: | Height: | Size: 98 KiB |
BIN
assets/smeg/smeg-2.jpg
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
assets/smeg/smeg-3.jpg
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
assets/smeg/smeg-4.jpg
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
assets/smeg/smeg-5.jpg
Normal file
After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 626 KiB After Width: | Height: | Size: 626 KiB |
|
@ -342,7 +342,13 @@ class Events(commands.Cog):
|
||||||
smeg_regex = r"[s5]+(m)+[e3]+[g9]+"
|
smeg_regex = r"[s5]+(m)+[e3]+[g9]+"
|
||||||
smeg_sub = r"(-_.\s)+"
|
smeg_sub = r"(-_.\s)+"
|
||||||
if re.match(smeg_regex, re.sub(smeg_sub, "", message.content.lower())):
|
if re.match(smeg_regex, re.sub(smeg_sub, "", message.content.lower())):
|
||||||
file = discord.File(Path.cwd() / "assets" / "wordart.png", filename="smeg.png")
|
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)
|
await message.reply(file=file)
|
||||||
if message.reference is not None and message.reference.cached_message is not None:
|
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 message.content.lower().strip() in ("what", "what?", "huh", "huh?", "?"):
|
||||||
|
|