guffer

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2016 License: MIT Imports: 6 Imported by: 0

README

Guffer

guffer Build Status GoDoc Go Report Card MIT License Issues

Guffer tweets based on a daily schedule. If you've used tools like Buffer or HootSuite, this will be familiar to you.

Creating Twitter auth keys

Visit https://apps.twitter.com/app/new

Set the following environment variables in either your user profile or at the command line:

  • CONSUMER_KEY
  • CONSUMER_SECRET
  • ACCESS_TOKEN
  • ACCESS_TOKEN_SECRET

Defining guffer.json

Guffer looks for a config file, for example guffer.json, which defines the schedule and status message (the tweet). Here's an example:

[  
  {
    "time": "15:22",
    "status": "Runs at 15:22 every day"
  },
  {
    "time": "15:23",
    "status": "Runs at 15:23 every day"
  },
  {
    "time": "15:26",
    "status": "Runs at 15:26 every day"
  }
]

Running guffer

From source:

go get github.com/mrichman/guffer
cd $GOPATH/src/github.com/mrichman/guffer
CONSUMER_KEY=xxxxx CONSUMER_SECRET=xxxxx ACCESS_TOKEN=xxxxx ACCESS_TOKEN_SECRET=xxxxx go run main.go guffer.json

Binary:

CONSUMER_KEY=xxxxx CONSUMER_SECRET=xxxxx ACCESS_TOKEN=xxxxx ACCESS_TOKEN_SECRET=xxxxx guffer guffer.json

Guffer will print out a summary of the queued tweets, and log each tweet to the console. Quit with Ctrl+C.

Contributing

If you find any bugs, please report them! I am also happy to accept pull requests from anyone.

You can use the GitHub issue tracker to report bugs, ask questions, or suggest new features.

For a more informal setting to discuss this project, you can join the Gitter chat.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL