Skip to content

Event alert messenger using python-teamcowboy-api and twillo's messaging client

License

Notifications You must be signed in to change notification settings

KCNilssen/Teamcowboy-Messenger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teamcowboy-Messenger

Event alert messenger for Team Cowboy using the twilio messaging client

Logos

Getting Started

Teamcowboy-Messenger is a Python script that with scheduled execution through github actions sends event alerts to team members from Team Cowboy via SMS using Twilio. Teamcowboy-Messenger Sends game event announcements four days before the event and game event reminders two days before the event. If there is an update to any event within the 4 day window, Teamcowboy-Messenger will alert team members via SMS to the updated event.

Api keys, login credentials and other sensitive information is safely stored and used with github secrets.

Github Actions Usage

Schedule

on:
  schedule:
    # Run every day at 4:25/3:25 (DST) pm PST
    - cron:  '25 23 * * *'

Secrets

- name: 
    env:
        PRIVATEAPIKEY: ${{ secrets.TCPRIVATEAPIKEY }}
        PUBLICAPIKEY: ${{ secrets.TCPUBLICAPIKEY }} 
        USERNAME: ${{ secrets.TCUSERNAME }}
        PASSWORD: ${{ secrets.TCPASSWORD }}
        TWILIOACCOUNTSID: ${{ secrets.TWILIOACCOUNTSID }}
        TWILIOAUTHTOKEN: ${{ secrets.TWILIOAUTHTOKEN }}
        TWILIOPHONENUMBER: ${{ secrets.TWILIOPHONENUMBER }}
        TEAMNAME: ${{ secrets.TEAMNAME }}

Run

run: |
    python3 ./eventmessenger.py TEAMNAME PRIVATEAPIKEY PUBLICAPIKEY USERNAME PASSWORD TWILIOACCOUNTSID TWILIOAUTHTOKEN TWILIOPHONENUMBER

About

Event alert messenger using python-teamcowboy-api and twillo's messaging client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages