retuyrn path
This commit is contained in:
1 parent
c10fe069d3
commit
c0218f0ce9
1 file changed
+3
-3
@@ -30,8 +30,8 @@ def emojer():
|
||||
def fuit_response():
|
||||
vid = secrets.choice(os.listdir("./assets/vid/"))
|
||||
path = f"./assets/vid/{vid}"
|
||||
with open(path, "rb") as ourfile:
|
||||
return ourfile
|
||||
#with open(path, "rb") as ourfile:
|
||||
return path
|
||||
|
||||
async def doccy_response():
|
||||
doccy = jackblack()
|
||||
@@ -85,7 +85,7 @@ async def on_message(message):
|
||||
response = await build_response()
|
||||
|
||||
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://"):
|
||||
pass
|
||||
if response.isupper():
|
||||
|
||||
Reference in new issue
Block a user