Delete the message after sending the tts
This commit is contained in:
parent
4551f0b5fa
commit
a242ae99ed
@ -327,6 +327,7 @@ async def on_message(message):
|
||||
tts.text_to_speech(message.content),
|
||||
filename="A Message From {}.mp3".format(message.author.name)
|
||||
)
|
||||
await client.delete_message(message)
|
||||
os.remove('/tmp/memes.mp3')
|
||||
|
||||
if message.content.startswith('!wallpaper'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user