https://github.com/gabrielrf/centraldetudo
Telegram @CentralDeTudo Bot
https://github.com/gabrielrf/centraldetudo
Last synced: 9 months ago
JSON representation
Telegram @CentralDeTudo Bot
- Host: GitHub
- URL: https://github.com/gabrielrf/centraldetudo
- Owner: GabrielRF
- License: mit
- Created: 2016-07-15T17:45:36.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T20:38:56.000Z (about 3 years ago)
- Last Synced: 2025-06-12T05:50:30.020Z (12 months ago)
- Language: Python
- Homepage: https://telegram.me/CentralDeTudo
- Size: 15.6 KB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Bot do Canal Central de Tudo
http://telegram.me/centraldetudo
## Instalação
### Para clonar o repositório em seu computador:
```
git clone git@github.com:GabrielRF/CentralDeTudo.git
cd CentralDeTudo
```
### Para instalar todos os componentes necessários ao funcionamento do bot:
```
pip install -r requirements.txt
```
### Crie o arquivo `bot.conf` e altere-o usando o editor de sua preferência:
```
cp bot.conf_sample bot.conf
```
`token`: Token do bot. Obtido com o [@BotFather](http://telegram.me/BotFather).
`dest`: Destino das mensagens. Exemplo: `@CentralDeTudo`.
`admin`: Os administradores do bot. Quem tem autorização para adicionar links à fila.
`file`: Arquivo que contém a fila de links.
### Crie o arquivo `fila.txt`:
É importante que o caminho do arquivo seja o mesmo indicado no passo anterior.
```
touch fila.txt
```
## Uso
### Para criar o processo que recebe os links, execute:
```
python line.py
```
### Para enviar um link presente na fila, execute:
```
python send.py
```