arnaucube
arnaucube/twitterReaderPublic Self-hosted repository
small update, and readme updated
arnaucode idoctnef@openmailbox.org
Wed, 17 May 2017 09:21:21 +0200
commit

06debf0e7fab1a1f26e2f83b9e82dcbfa992e178

parent

0b2521f2a848df1e6641a4453e0edcf2feaed0b9

6 files changed, 9 insertions(+), 4 deletions(-)

jump to
M README.md → README.md

@@ -1,7 +1,9 @@

-# twitterReader +# twitterReader [![Go Report Card](https://goreportcard.com/badge/github.com/arnaucode/twitterReader)](https://goreportcard.com/report/github.com/arnaucode/twitterReader) twitter reader assistant written in Go lang -uses festival for the text to speech features +uses Festival Speech Synthesis System (http://www.cstr.ed.ac.uk/projects/festival/) for the text to speech features + +![twitterReader](https://raw.githubusercontent.com/arnaucode/twitterReader/master/twitterReader.png "twitterREader") to execute
M festival.go → festival.go

@@ -15,6 +15,9 @@ festival := exec.Command(path, "--tts")

reader := strings.NewReader(text) festival.Stdin = reader err = festival.Run() + if err != nil { + fmt.Println("error") + } } func festivalCa(text string) {
M main.go → main.go

@@ -1,7 +1,7 @@

package main func main() { - c.Cyan("hi") + c.Cyan("connecting to twitter api and getting the last tweets") client := readConfigTokensAndConnect() tweets := getTimeline(client) for i := 0; i < len(tweets); i++ {
M readConfigTokensAndConnect.go → readConfigTokensAndConnect.go

@@ -34,7 +34,7 @@ httpClient := configu.Client(oauth1.NoContext, token)

// twitter client client = twitter.NewClient(httpClient) - fmt.Println("connection successfull") + fmt.Println("connection successful") return client }