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