retuyrn path

This commit is contained in:
CF committed 2025-05-26 13:43:34 -07:00
1 parent c10fe069d3
commit c0218f0ce9
1 file changed
+3 -3
+3 -3
View File
@@ -30,8 +30,8 @@ def emojer():
def fuit_response(): def fuit_response():
vid = secrets.choice(os.listdir("./assets/vid/")) vid = secrets.choice(os.listdir("./assets/vid/"))
path = f"./assets/vid/{vid}" path = f"./assets/vid/{vid}"
with open(path, "rb") as ourfile: #with open(path, "rb") as ourfile:
return ourfile return path
async def doccy_response(): async def doccy_response():
doccy = jackblack() doccy = jackblack()
@@ -85,7 +85,7 @@ async def on_message(message):
response = await build_response() response = await build_response()
if isinstance(response, io.IOBase): if isinstance(response, io.IOBase):
await message.channel.send(file=discord.File(response, filename="fuit.mov")) await message.channel.send(file=discord.File(response))
if response.startswith("<https://"): if response.startswith("<https://"):
pass pass
if response.isupper(): if response.isupper():