diff --git a/README.md b/README.md index 843c11b..c1b1015 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,8 @@ https://en.wikipedia.org/wiki/Panopticon 3. Random follow - selects n number of accounts to follow, and follows n random accounts 4. Delete Tweets -5. Random tweet +5. Delete Favs (Likes) +6. Random tweet - post a tweet with content from a selected account ![screen](https://raw.githubusercontent.com/arnaucode/argos/master/screen3.png "screen") diff --git a/analyzeDates.go b/analyzeDates.go index 8f75c9b..65f3a57 100644 --- a/analyzeDates.go +++ b/analyzeDates.go @@ -89,11 +89,12 @@ func analyzeHours(tweets []twitter.Tweet) { for _, v := range tweets { time := strings.Split(v.CreatedAt, " ")[3] hour := strings.Split(time, ":")[0] - if _, ok := hours[hour]; ok { + /*if _, ok := hours[hour]; ok { hours[hour] = hours[hour] + 1 } else { hours[hour] = 1 - } + }*/ + hours[hour]++ } printHours(hours) } diff --git a/argos b/argos new file mode 100755 index 0000000..ca5ea61 Binary files /dev/null and b/argos differ diff --git a/build/argos b/build/argos index 77fb923..ca5ea61 100755 Binary files a/build/argos and b/build/argos differ diff --git a/main.go b/main.go index ecdc698..8a02103 100644 --- a/main.go +++ b/main.go @@ -18,6 +18,7 @@ func main() { fmt.Println("---------------") c.Cyan("argos initialized") c.Purple("https://github.com/arnaucode/argos") + c.Purple("http://arnaucode/argos") fmt.Println("version " + version) fmt.Println("Reading twitterConfig.json file") client := readConfigTokensAndConnect() @@ -26,6 +27,10 @@ func main() { fmt.Println("Getting user data...") user := getUserData(client) printUserData(user) + if user.ScreenName == "" { + c.Red("Can not connect to Twitter API, maybe the file twitterConfig.json is wrong") + os.Exit(3) + } fmt.Println("") newcommand := bufio.NewReader(os.Stdin) @@ -49,6 +54,8 @@ option to select: ` case "1": fmt.Println("selected 1 - Analyze username") optionAnalyzeUserTweets(client) + fmt.Println("") + c.Purple("Note: the current hours displaying, are the Twitter servers hours (Coordinated Universal Time (UTC) +0000 UTC)") break case "2": fmt.Println("selected 2 - Unfollow all")