diff --git a/README.md b/README.md index 4792912..b8f5224 100644 --- a/README.md +++ b/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 diff --git a/festival.go b/festival.go index 7fb0535..f3d068d 100644 --- a/festival.go +++ b/festival.go @@ -15,6 +15,9 @@ func festivalEn(text string) { reader := strings.NewReader(text) festival.Stdin = reader err = festival.Run() + if err != nil { + fmt.Println("error") + } } func festivalCa(text string) { diff --git a/main.go b/main.go index 4b046d0..69358e8 100644 --- a/main.go +++ b/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++ { diff --git a/readConfigTokensAndConnect.go b/readConfigTokensAndConnect.go index faf531d..ea7d0d6 100644 --- a/readConfigTokensAndConnect.go +++ b/readConfigTokensAndConnect.go @@ -34,7 +34,7 @@ func readConfigTokensAndConnect() (client *twitter.Client) { // twitter client client = twitter.NewClient(httpClient) - fmt.Println("connection successfull") + fmt.Println("connection successful") return client } diff --git a/twitterReader b/twitterReader index 71050af..b22118f 100755 Binary files a/twitterReader and b/twitterReader differ diff --git a/twitterReader.png b/twitterReader.png new file mode 100644 index 0000000..451dbc4 Binary files /dev/null and b/twitterReader.png differ