mirror of
https://github.com/arnaucube/twitterReader.git
synced 2026-02-06 19:26:46 +01:00
small update, and readme updated
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
# twitterReader
|
# twitterReader [](https://goreportcard.com/report/github.com/arnaucode/twitterReader)
|
||||||
twitter reader assistant written in Go lang
|
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
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
to execute
|
to execute
|
||||||
|
|||||||
@@ -15,6 +15,9 @@ func festivalEn(text string) {
|
|||||||
reader := strings.NewReader(text)
|
reader := strings.NewReader(text)
|
||||||
festival.Stdin = reader
|
festival.Stdin = reader
|
||||||
err = festival.Run()
|
err = festival.Run()
|
||||||
|
if err != nil {
|
||||||
|
fmt.Println("error")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func festivalCa(text string) {
|
func festivalCa(text string) {
|
||||||
|
|||||||
2
main.go
2
main.go
@@ -1,7 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
c.Cyan("hi")
|
c.Cyan("connecting to twitter api and getting the last tweets")
|
||||||
client := readConfigTokensAndConnect()
|
client := readConfigTokensAndConnect()
|
||||||
tweets := getTimeline(client)
|
tweets := getTimeline(client)
|
||||||
for i := 0; i < len(tweets); i++ {
|
for i := 0; i < len(tweets); i++ {
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ func readConfigTokensAndConnect() (client *twitter.Client) {
|
|||||||
// twitter client
|
// twitter client
|
||||||
client = twitter.NewClient(httpClient)
|
client = twitter.NewClient(httpClient)
|
||||||
|
|
||||||
fmt.Println("connection successfull")
|
fmt.Println("connection successful")
|
||||||
|
|
||||||
return client
|
return client
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
twitterReader
BIN
twitterReader
Binary file not shown.
BIN
twitterReader.png
Normal file
BIN
twitterReader.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 212 KiB |
Reference in New Issue
Block a user