Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Latest commit

 

History

History
executable file
·
31 lines (23 loc) · 761 Bytes

README.md

File metadata and controls

executable file
·
31 lines (23 loc) · 761 Bytes

py2teams

Utilidad en python para enviar la salida de un comando a un canal de Microsoft Teams.

Configuración

Linux

  • Añadir el webhook al config_template.py y renombrar a config.py
  • Crear alias:
    alias py2teams='python3 /route/to/py2teams/py2teams.py'
    

Windows

  • Añadir el webhook al config_template.py y renombrar a config.py
  • Editar path:
    PS C:\Users\aalonsof> $env:Path="$env:Path;C:\ruta\a\py2teams"
    PS C:\Users\aalonsof> $env:PATHEXT += ";.py"
    PS C:\Users\aalonsof> nslookup www.prosodie.es 8.8.8.8 | py2teams.py
    
Ejemplo de uso
$ nslookup www.prosodie.com 8.8.8.8 |& py2teams