Reply to sender
This commit is contained in:
parent
0bc963c78a
commit
693999ae21
@ -255,9 +255,9 @@ async def allMemes(command, message, client):
|
|||||||
for meme in close_memes:
|
for meme in close_memes:
|
||||||
ready_meme = getDiscordReadyObjectFromS3(meme)
|
ready_meme = getDiscordReadyObjectFromS3(meme)
|
||||||
if isinstance(ready_meme, str):
|
if isinstance(ready_meme, str):
|
||||||
await message.channel.send(ready_meme)
|
await message.channel.send(ready_meme, reference=message)
|
||||||
else:
|
else:
|
||||||
await message.channel.send(file=ready_meme)
|
await message.channel.send(file=ready_meme, reference=message)
|
||||||
return "Enjoy your memes :)"
|
return "Enjoy your memes :)"
|
||||||
else:
|
else:
|
||||||
return "I need a query!"
|
return "I need a query!"
|
||||||
@ -274,9 +274,9 @@ async def memeDump(command, message, client):
|
|||||||
meme = getRandomMeme()
|
meme = getRandomMeme()
|
||||||
ready_meme = getDiscordReadyObjectFromS3(meme)
|
ready_meme = getDiscordReadyObjectFromS3(meme)
|
||||||
if isinstance(ready_meme, str):
|
if isinstance(ready_meme, str):
|
||||||
await message.channel.send(ready_meme)
|
await message.channel.send(ready_meme, reference=message)
|
||||||
else:
|
else:
|
||||||
await message.channel.send(file=ready_meme)
|
await message.channel.send(file=ready_meme, reference=message)
|
||||||
return "Enjoy your memes :)"
|
return "Enjoy your memes :)"
|
||||||
|
|
||||||
# get an uploaded meme and save it
|
# get an uploaded meme and save it
|
||||||
|
@ -48,9 +48,9 @@ async def parse_message(client, message):
|
|||||||
result = await calldict[cmd_input](command, message, client)
|
result = await calldict[cmd_input](command, message, client)
|
||||||
if isinstance(result, discord.File):
|
if isinstance(result, discord.File):
|
||||||
print(f'{client.user} is replying with a file ({result.filename})')
|
print(f'{client.user} is replying with a file ({result.filename})')
|
||||||
return await message.channel.send(file=result)
|
return await message.channel.send(file=result, reference=message)
|
||||||
else:
|
else:
|
||||||
print(f'{client.user} is replying with the string ({result})')
|
print(f'{client.user} is replying with the string ({result})')
|
||||||
return await message.channel.send(result)
|
return await message.channel.send(result, reference=message)
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user