mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-24 03:54:20 +00:00
Visualizza elenco audio se specificato non esiste
This commit is contained in:
parent
974f9b2567
commit
78e95fcbe9
1 changed files with 7 additions and 2 deletions
7
bot.py
7
bot.py
|
@ -242,8 +242,13 @@ while True:
|
||||||
elif text.startswith('/audio'):
|
elif text.startswith('/audio'):
|
||||||
print("@" + username + ": /audio")
|
print("@" + username + ": /audio")
|
||||||
cmd = text.split(" ", 1)
|
cmd = text.split(" ", 1)
|
||||||
|
if cmd[1] in audiolist:
|
||||||
sendme = audiolist[cmd[1]]
|
sendme = audiolist[cmd[1]]
|
||||||
telegram.senddocument(sendme, sentin)
|
else:
|
||||||
|
sendme = chr(9888) + " L'audio richiesto non esiste!\n*Audio disponibili*:\n"
|
||||||
|
for audio in audiolist:
|
||||||
|
sendme += audio + "\n"
|
||||||
|
telegram.sendmessage(sendme, sentin)
|
||||||
elif text.startswith('/sbam'):
|
elif text.startswith('/sbam'):
|
||||||
print("@" + username + ": /sbam")
|
print("@" + username + ": /sbam")
|
||||||
# Manda l'audio contenente gli sbam di tutti i membri Royal Games.
|
# Manda l'audio contenente gli sbam di tutti i membri Royal Games.
|
||||||
|
|
Loading…
Reference in a new issue