Delete the message before uploading the response

This commit is contained in:
Luke Robles 2018-05-04 18:28:47 -07:00
parent d2ef36572a
commit 6a1dc0ce8d

View File

@ -313,6 +313,7 @@ async def on_message(message):
) )
if message.content.startswith('!tts'): if message.content.startswith('!tts'):
await client.delete_message(message)
await client.send_file( await client.send_file(
message.channel, message.channel,
tts.text_to_speech(message.content), tts.text_to_speech(message.content),