You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
493 B

package main
func main() {
c.Cyan("connecting to twitter api and getting the last tweets")
client := readConfigTokensAndConnect()
tweets := getTimeline(client)
for i := 0; i < len(tweets); i++ {
c.Cyan(tweets[i].User.ScreenName + ": " + tweets[i].Text)
c.Green(tweets[i].Lang)
content := removeLinks(tweets[i].Text)
if tweets[i].Lang == "en" {
festivalEn(tweets[i].User.ScreenName + ": " + content)
} else {
festivalCa(tweets[i].User.ScreenName + ": " + content)
}
}
}