DIY sms announce lists for you and yours
Find a file
djsweet 2145ce1134 Make a thing worth running (#7)
This is, admittedly, mostly the [twilio-go](https://github.com/twilio/twilio-go) Quickstart, adapted with positional arguments and environment variables for secrets. But it's definitely a start!

Co-authored-by: Dani Sweet <djsweet@users.noreply.github.com>
Reviewed-on: #7
Reviewed-by: maren <git@stillgreenmoss.net>
2024-01-08 00:47:15 +00:00
.gitignore maren (#4) 2023-12-03 00:37:10 +00:00
go.mod Make a thing worth running (#7) 2024-01-08 00:47:15 +00:00
go.sum Make a thing worth running (#7) 2024-01-08 00:47:15 +00:00
readme.md Make a thing worth running (#7) 2024-01-08 00:47:15 +00:00
smsbb.go Make a thing worth running (#7) 2024-01-08 00:47:15 +00:00

smsbb 👼

DIY sms announce lists for you and yours

norms for working on this repo

  • work in a branch
  • branch names should use the format username/thing-you-are-doing
    • for example git checkout -b maren/update-readme-3
  • don't worry about tidy commits! just keep your work in a branch
  • open a PR and review with someone synchronously before merging to main

getting started real fast

Here's what to do if you haven't already set up your GOPATH:

  1. Run go env and figure out how your Go installation is configured with respect to your GOPATH:

    $ go env | grep GOPATH
    GOPATH='/home/you/go'
    
  2. Set up this repository within your GOPATH:

    # If GOPATH is /home/you/go, then...
    $ cd ~/go && mkdir -p pkg/git.bunk.computer/bunk/smsbb && cd pkg/git.bunk.computer/bunk
    $ git clone https://git.bunk.computer/bunk/smsbb
    $ cd smsbb
    
  3. Get your Twilio Account SID and Auth Token and store them in the following environment variables:

    $ export SMSBB_ACCT_SID="..." # Your Twilio Account SID goes here
    $ export SMSBB_AUTH_TOKEN="..." # Your Twilio Auth Token goes here
    
  4. Run smsbb:

    # In this example, +1 (828) 555-0123 is the "from" address, and
    # +1 (828) 555-4567 is the "to" address
    $ go run smsbb.go "+18285550123" "+18285554567" "This is your first message\!"