https://github.com/pando85/speak-entertainer
https://github.com/pando85/speak-entertainer
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/pando85/speak-entertainer
- Owner: pando85
- Created: 2018-07-06T07:48:11.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T02:15:19.000Z (over 3 years ago)
- Last Synced: 2023-08-06T00:42:05.485Z (almost 3 years ago)
- Language: Python
- Size: 9.77 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SCRIPTS
## speak.py
### requirements
- vlc
- python2
## pepibot.py
Este script usa el bot de Telegram [@misspepi_bot](http://telegram.me/misspepi_bot) para quedar a la escucha y reproducir con *speak.py* el mensaje que le envíen los usuarios autorizados
En necesario tener el siguiente fichero json en el mismo directorio donde se encuentre pepibot.py con el token del bot de Telegram y la lista de usuarios autorizados. El formato es el siguiente:
```json
{
"token": "XXXXXXXXXXXXXXXXXXXXXXXXXXX",
"authorized_ids": [
1111111,
2222222,
3333333,
4444444,
5555555,
6666666
]
}
```
El script lee cada 5 minutos este json para comprobar si se ha actualizado la lista de usuarios autorizados sin necesidad de reiniciar el script