Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5877807846 | ||
|
|
c0218f0ce9 |
@@ -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()
|
||||
@@ -60,12 +60,6 @@ async def build_response():
|
||||
else:
|
||||
resps = doccy
|
||||
|
||||
'''resps = [
|
||||
doccy,
|
||||
emoji_response,
|
||||
|
||||
]
|
||||
'''
|
||||
#return str(secrets.choice(resps))
|
||||
return resps
|
||||
|
||||
@@ -84,8 +78,10 @@ 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"))
|
||||
try:
|
||||
await message.channel.send(file=discord.File(response))
|
||||
except:
|
||||
pass
|
||||
if response.startswith("<https://"):
|
||||
pass
|
||||
if response.isupper():
|
||||
|
||||
Reference in new issue
Block a user