https://github.com/ezeparziale/slack-bot-python
:robot: Slack Bot template
https://github.com/ezeparziale/slack-bot-python
bot python slack slack-bot
Last synced: 2 months ago
JSON representation
:robot: Slack Bot template
- Host: GitHub
- URL: https://github.com/ezeparziale/slack-bot-python
- Owner: ezeparziale
- Created: 2021-12-16T22:41:42.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-05-17T23:59:29.000Z (about 3 years ago)
- Last Synced: 2025-07-19T18:44:30.354Z (11 months ago)
- Topics: bot, python, slack, slack-bot
- Language: Python
- Homepage:
- Size: 62.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# :robot: Slack bot
Slack bot template con varias funciones
## :star: Funciones
- Mesanje en directo
- Mensaje en canal
- Reación
- Menciones
- Comandos
- Programación de mensajes
## :running_man: Run
```shell
python -m venv env
```
```shell
source env/bin/activate
```
```shell
python.exe -m pip install --upgrade pip
```
```shell
pip install -r requirements.txt
```
Para la base de datos+app:
```shell
docker-compose -f "docker-compose.yml" up -d
```
Para la app:
```shell
flask run --debug
```
## :right_anger_bubble: Slack
Hay que crear un bot en slack:
```http
https://slack.com/intl/es-ar/help/articles/115005265703-Cómo-crear-un-bot-para-tu-espacio-de-trabajo
```
```http
https://api.slack.com/apps?new_app=1
```
## :globe_with_meridians: Requests
La configuración de los eventos necesita un "request_url".
Es cualquier url que redireccione al server donde esta corriendo la app.
En este caso usamos ngrok
Para bajarlo:
```http
https://ngrok.com
```
Una vez descomprimido ejecutar:
```cmd
ngrok http 5000
```
## :bell: Comandos
Obtener el clima en una ciudad:
```text
/clima nombre_ciudad
```
Obtener la cotización de una crypto moneda:
```text
/crypto coin_name
```