mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-30 15:04:18 +00:00
Magari gli audio mandali come file.
This commit is contained in:
parent
78e95fcbe9
commit
a6a379a946
1 changed files with 2 additions and 1 deletions
3
bot.py
3
bot.py
|
@ -244,11 +244,12 @@ while True:
|
||||||
cmd = text.split(" ", 1)
|
cmd = text.split(" ", 1)
|
||||||
if cmd[1] in audiolist:
|
if cmd[1] in audiolist:
|
||||||
sendme = audiolist[cmd[1]]
|
sendme = audiolist[cmd[1]]
|
||||||
|
telegram.senddocument(sendme, sentin, source)
|
||||||
else:
|
else:
|
||||||
sendme = chr(9888) + " L'audio richiesto non esiste!\n*Audio disponibili*:\n"
|
sendme = chr(9888) + " L'audio richiesto non esiste!\n*Audio disponibili*:\n"
|
||||||
for audio in audiolist:
|
for audio in audiolist:
|
||||||
sendme += audio + "\n"
|
sendme += audio + "\n"
|
||||||
telegram.sendmessage(sendme, sentin)
|
telegram.sendmessage(sendme, sentin, source)
|
||||||
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