Switch this to a DM to keep the chat clean
This commit is contained in:
parent
e899211ee8
commit
c02a7e127f
@ -345,10 +345,14 @@ async def on_message(message):
|
|||||||
|
|
||||||
if message.content.startswith('!tts'):
|
if message.content.startswith('!tts'):
|
||||||
if message.content.split()[1] == 'langs':
|
if message.content.split()[1] == 'langs':
|
||||||
return await client.send_message(
|
await client.send_message(
|
||||||
message.channel,
|
message.channel,
|
||||||
|
"Ok {}, check your DMs".format(message.author.mention)
|
||||||
|
)
|
||||||
|
return await client.send_message(
|
||||||
|
message.author,
|
||||||
tts.get_all_langs()
|
tts.get_all_langs()
|
||||||
)
|
)
|
||||||
await client.send_file(
|
await client.send_file(
|
||||||
message.channel,
|
message.channel,
|
||||||
tts.text_to_speech(message.content),
|
tts.text_to_speech(message.content),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user