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.

65 lines
1.3 KiB

package main
import (
"bufio"
"fmt"
"os"
"strings"
)
const version = "0.1-dev"
const minNumWords = 10
const minNumHashtag = 2
const iterationsCount = 3
func main() {
c.Yellow("Argos Panoptes")
fmt.Println("---------------")
c.Cyan("argos initialized")
c.Purple("https://github.com/arnaucode/argos")
fmt.Println("version " + version)
fmt.Println("Reading twitterConfig.json file")
client := readConfigTokensAndConnect()
fmt.Println("---------------")
newcommand := bufio.NewReader(os.Stdin)
fmt.Print("Please select command number")
options := `
1 - Analyze username
2 - Delete Tweets & Rretweets
3 - Unfollow all
4 - Follow random
0 - Exit script
option to select: `
for {
fmt.Print(options)
option, _ := newcommand.ReadString('\n')
option = strings.TrimSpace(option)
switch option {
case "1":
fmt.Println("selected 1 - Analyze username")
optionGetUserTweets(client)
break
case "2":
fmt.Println("selected 2 - Delete Tweets")
optionDeleteTweets(client)
break
case "3":
fmt.Println("selected 3 - Unfollow all")
optionUnfollowAll(client)
break
case "4":
fmt.Println("selected 4 - Follow random")
optionFollowRandom(client)
break
case "0":
fmt.Println("selected 0 - exit script")
os.Exit(3)
break
default:
fmt.Println("Invalid option")
break
}
}
}